You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case of allOf properties of the same property should be merged (taking the first or the last if set multiple times, the spec doesn't state anything for that case), that way there would be no need to generate a new type, especially for basic type properties.
The text was updated successfully, but these errors were encountered:
Having one reference and one inline schema in the allOf also doesn't generate code I would expect. The generated type for the property (which is of type string so I wouldn't even expect an additional type here) contains a property of type object instead of string.
Bug Report Checklist
Description
schemas with allOf definitions setting the same property multiple times result in a generated type with no property at all
openapi-generator version
I used commit hash 1b2917d and the "csharp" generator as well as a new generator for a different target language I'm developing right now.
OpenAPI declaration file content or url
Generation Details
My settings for generator as code:
Steps to reproduce
Related issues/PRs
#10010
Suggest a fix
In case of allOf properties of the same property should be merged (taking the first or the last if set multiple times, the spec doesn't state anything for that case), that way there would be no need to generate a new type, especially for basic type properties.
The text was updated successfully, but these errors were encountered: