[BUG] DefaultCodegen should generate OneOf<ObjA,ObjB> from composed-oneof, but got Oneof<ObjA>
Created by: zigen
Description
DefaultCodegen cannot generate composed oneof type properly. this generates the type which includes only first type of Schema.oneOf
.
openapi-generator version
4.0.0-SNAPSHOT
OpenAPI declaration file content or url
3_0/composed-oneof.yaml
Command line used for generation
./mvnw test
Steps to reproduce
DefaultCodegenTest.java:252
the value of type
is oneOf<ObjA>
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/issues/1745