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
The generated code when using OneOf, AnyOf or AllOf contain errors, i.e.:
AllOf: When a schema A for example uses AllOf together with > 1 subschemes (B, C, ...), only the first defined scheme (B) within AllOf is used within the generated client code for the scheme A.
AnyOf and OneOf: Some included files are not generated.
Bug Report Checklist
Description
The generated code when using OneOf, AnyOf or AllOf contain errors, i.e.:
openapi-generator version
4.3.1
OpenAPI declaration file content or url
Command line used for generation
java -cp openapi-generator-cli-4.3.1.jar org.openapitools.codegen.OpenAPIGenerator generate -i ${SPEC_FILE} -g cpp-qt5-client -o gen/ --model-name-prefix Test
Steps to reproduce
Execute code generation and take a look at the files (SchemaOneOf.h, SchemaAllOf.h, SchemaAnyOf.h, etc.).
Related issues/PRs
E.g. for oneOf: #15
Suggest a fix
The text was updated successfully, but these errors were encountered: