We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
$ datamodel-codegen --url https://partnerportal.skyscanner.net/tr-docs/static/push.schema.flights.v6.json --input-file-type jsonschema --use-subclass-enum --field-include-all-keys --output model.py $ datamodel-codegen --url https://partnerportal.skyscanner.net/tr-docs/static/push.schema.flights.v6.json --input-file-type jsonschema --output model.py
Expected behavior A clear and concise description of what you expected to happen.
The expected is the correct enum class like this:
Version:
The text was updated successfully, but these errors were encountered:
Seems the following issue is about the same topic #1925
Sorry, something went wrong.
No branches or pull requests
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:
The text was updated successfully, but these errors were encountered: