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
I have an API specification that makes use of inheritance and polymorphism using the oneOf,anyOf, and allOf syntax. In the current master snapshot, the Java generator using jersey2 library handles the allOf inheritance without errors. However, the oneOf and anyOf polymorphism does not result in the creation of classes, thus causing compile errors.
Description
I have an API specification that makes use of inheritance and polymorphism using the
oneOf
,anyOf
, andallOf
syntax. In the current master snapshot, the Java generator usingjersey2
library handles theallOf
inheritance without errors. However, theoneOf
andanyOf
polymorphism does not result in the creation of classes, thus causing compile errors.openapi-generator version
5.0.0-snapshot as of July 23, 2020
OpenAPI declaration file content or url
Here is a sample specification which reproduces the issue:
https://gist.github.com/sylvester-rubidium/6898e33c93fe67d23effefb352db971e
Command line used for generation
The client config file:
The command to generate the SDK:
Steps to reproduce
cd java_sdk; mvn clean install
Related issues/PRs
Several issues and PRs have been reported. However, @wing328 suggested I open a bug issue for this specific problem.
A possibly related issue in the final comment here:
#4785 (comment)
Suggest a fix
Sadly, I am not a Java fluent developer and am creating this SDK to support another team. Thus, I do not have a suggested fix and am seeking help.
The text was updated successfully, but these errors were encountered: