Skip to content

Fix oneOf of inlined models #335

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

Closed

Conversation

forest-benchling
Copy link
Collaborator

Previously, if you had a oneOf of inlined models, each inline model was generated with the same name, causing effectively only the last model to be included (since it overwrote all the previous models).

In this PR, we give it an autogenerated name, to avoid the name clash.

The failing test is an existing bug which is fixed in #332.

@forest-benchling forest-benchling marked this pull request as draft February 10, 2021 16:29
@forest-benchling forest-benchling marked this pull request as ready for review February 10, 2021 16:34
@forest-benchling
Copy link
Collaborator Author

cc @dbanty @emann @bowenwr @packyg

@forest-benchling
Copy link
Collaborator Author

Closing, merged into #332

forest-benchling added a commit to benchling/openapi-python-client that referenced this pull request Feb 11, 2021
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.

1 participant