-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] [Java] Use of anyOf leads to uncompilable output (missing class) #5938
Labels
Comments
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
To give more light on the example:
|
6 tasks
no longer an issue with the latest master
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report Checklist
Description
Use of
anyOf
leads to a model class referencing another model class which isn't generated. When using the definitions below, the following field is generated withinPartner
:The problem is that the class
AnyOfAddress
(org.openapitools.client.model.AnyOfAddress
fully qualified) doesn't exist. It should probably be generated, too, but it isn't.openapi-generator version
4.3.0
OpenAPI declaration file content or url
The example is actually split into two files because that's how the original set of files looked like (I only deleted most of the contents and all the other files that were originally there).
address.yaml:
partner.yaml:
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: