Skip to content
New issue

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

Better code gen support for additionalProperties=true #432

Open
lyuyangh opened this issue Oct 18, 2022 · 0 comments
Open

Better code gen support for additionalProperties=true #432

lyuyangh opened this issue Oct 18, 2022 · 0 comments

Comments

@lyuyangh
Copy link
Member

The generated class is empty (swagger_types is empty) if additionalProperties=true is used in openapi.yaml. It should at least list the properties that are defined. This issue applies to both flask-python and the ts client so it may be an issue related to the code gen tool (it may not be something related to the templates).

Not an immediate blocker but it'll be nice to fix this.

Related code is here:

# If swagger_types is empty, klass has additionalProperties=true. data

@lyuyangh lyuyangh changed the title Better Model template for additionalProperties=true Better code gen support for additionalProperties=true Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant