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>