OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
20.63k stars 6.29k forks source link

[JAVA] [jersey2] [jersey3] [okhttp] [native] Fix models-only build broken when schema has `anyOf` or `oneOf` #18856

Open Philzen opened 1 month ago

Philzen commented 1 month ago

Comes down to AbstractOpenApiSchema being a supportedFile, while actually oneOf- and anyOf-models depend on it to compile.

Fixing this closes #16257

A proper fix will also imply that this file really only is generated when needed – so that would close #18829

PR checklist