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

[Go] fix allOf with multiple ref and discriminator #18390

Conversation

rikotsev
Copy link
Contributor

@rikotsev rikotsev commented Apr 15, 2024

Currently, when the "FinalItem" is a composite schema the parent is not added.
It seems this is done to handle the "additionalProperties".

My proposal is for this to work for "isMap" schemas and use the parentModel.name which for the items with additionalProperties would be null anyway.

@antihax @grokify @kemokemo @jirikuncar @ph4r5h4d @lwj5

To close #18385

@wing328 wing328 added this to the 7.5.0 milestone Apr 16, 2024
@wing328
Copy link
Member

wing328 commented Apr 16, 2024

tested locally and the fix looks good.

thanks for the fix

@wing328 wing328 merged commit 1471e7a into OpenAPITools:master Apr 16, 2024
14 checks passed
@wing328 wing328 changed the title Go generate all of with multiple ref and discriminator [Go] fix allOf with multiple ref and discriminator Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Go (client) is not able to generate code that compiles for allOf
3 participants