Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.
2.66k
stars
296
forks
source link
Enum is not being generated from JSON Schema from URL #1963
Open
coldenol opened 4 months ago
Describe the bug A clear and concise description of what the bug is.
I'm trying to generate models from the skyscanner public JSON schema from here: partnerportal.skyscanner.net where they have enums like this one:
But instead of enum an empty base class is being created:
To Reproduce
Example schema: partnerportal.skyscanner.net
Used commandline:
Expected behavior A clear and concise description of what you expected to happen.
The expected is the correct enum class like this:
Version: