mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
5195e55c10
* Updates schema() to generate enums as separate models * Fixes mypy annotations * Adds changes file * Fixes comment * Removes unused import * Fixes test case * Fixes missing partial branch in test coverage * Resolves PR comments * 🐛 Include enums in flat model schema handling as they now have independent schemas, they kinda behave like top-level models, and should be taken into account for top level definitions * ✅ Add test for coverage * 🐛 Use Type[Enum] as type for consistency Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Pending Changes
This directory contains files describing changes to pydantic since the last release.
If you're creating a pull request, please add a new file to this directory called
<pull request or issue id>-<github username>.md. It should be formatted as a single paragraph of markdown
The contents of this file will be used to update HISTORY.md before the next release.