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

Make sure we don't get two entries in codegenContents with the same schema #838

Conversation

alf-mindshift
Copy link

@alf-mindshift alf-mindshift commented Jan 8, 2021

Given the same schema, the templates will generate identical operations. In some languages this is fine, but in for instance Java this will cause the compiler to barf.

I don't have time to make a failing tests, but that should be trivial. This pull fixes #837.

@alf-mindshift alf-mindshift changed the title Fixes #837 Make sure we don't get two entries in codegenContents with the same schema Jan 8, 2021
@alf-mindshift
Copy link
Author

This fix is not good enough since the resulting operation will look different depending on the order of the content types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate codegenContents when requestBody has multiple content types and one of them is a form
1 participant