Open wtrocki opened 1 year ago
I'm going to work on this issue. There is little details but I have the context so solve it. Normally there should be an {ModelName}AllOf object introduced that will contain parent fields but somehow it is not happening.
Any update on this issue? I met the same error. @wtrocki I'd like to help if there are some details provided.
@chivalryq you would need to edit your schema - move properties from parent to each element in oneOf. As for fix in openapi generator we need this PR merged: https://github.com/OpenAPITools/openapi-generator/pull/14459
@wtrocki Thanks for your reply. Do you mean that I can either edit the schema or wait for new version that contains support on OneOf? Or I have to both do the two things?
UPDATE: I see the result of only changing the schema is acceptable. Thanks!
I see the result of only changing the schema is acceptable. Thanks!
Glad it works for you
Bug Report Checklist
Description
When oneOf is present on the object the other properities aren't included in that object.
openapi-generator version
6.2.1
OpenAPI declaration file content or url
test property would not be included into object.
Steps to reproduce
Related issues/PRs
Suggest a fix