godatadriven / pydantic-spark

MIT License
25 stars 8 forks source link

Handle Pydantic generating allOf for enums with default values #42

Open shanehead opened 8 months ago

shanehead commented 8 months ago

See https://github.com/pydantic/pydantic/issues/2592 for a description of the issue. This only handles the case where allOf is a list of length 1 with a $ref. Additionally some warnings were fixed related to deprecated Pydantic V2 methods and pytest warnings on class names starting with Test.