Schema generation with GenericModel and multiple enums is broken since 1.8.0 #2575
Closed
3 tasks done
Labels
bug V1
Bug related to Pydantic V1.X
Checks
Bug
Since pydantic 1.8.0 schema generation with
GenericModel
and multipleEnum
fields using this GenericModel fails with aKeyError
. I have tried the fix in #2536 but this seems to be another corner case that has to be fixed.Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:This results in a
KeyError
:Thank you for your work on this amazing library!
The text was updated successfully, but these errors were encountered: