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
[ x] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
I have the validated the following openapi.yaml that uses the oneOf keyword and I tried the latest openapi-generator-cli-5.0.0-beta3 and the stable openapi-generator-cli-4.3.1 to create a server stub for JAX-RS Jersey:
The generated jax-rs server code produces the following compile error. This error with produced by both tested openapi-generator versions (4.3.1 and 5.0.0-beta3) even though the bugfix of #7263 in 5.0.0-beta3 should have resolved the issue.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project openapi-jaxrs-server: Compilation failure: Compilation failure:
[ERROR] /debugging/openapi-5.0.3-beta/jax-rs-server/src/gen/java/org/openapitools/model/Animal.java:[21,30] cannot find symbol
[ERROR] symbol: class OneOfFishDog
[ERROR] location: package org.openapitools.model
[ERROR] /debugging/openapi-5.0.3-beta/jax-rs-server/src/gen/java/org/openapitools/model/Animal.java:[41,11] cannot find symbol
[ERROR] symbol: class OneOfFishDog
[ERROR] location: class org.openapitools.model.Animal
[ERROR] /debugging/openapi-5.0.3-beta/jax-rs-server/src/gen/java/org/openapitools/model/Animal.java:[63,23] cannot find symbol
[ERROR] symbol: class OneOfFishDog
[ERROR] location: class org.openapitools.model.Animal
[ERROR] /debugging/openapi-5.0.3-beta/jax-rs-server/src/gen/java/org/openapitools/model/Animal.java:[75,10] cannot find symbol
[ERROR] symbol: class OneOfFishDog
[ERROR] location: class org.openapitools.model.Animal
[ERROR] /debugging/openapi-5.0.3-beta/jax-rs-server/src/gen/java/org/openapitools/model/Animal.java:[79,24] cannot find symbol
[ERROR] symbol: class OneOfFishDog
[ERROR] location: class org.openapitools.model.Animal
Bug Report Checklist
Description
I have the validated the following openapi.yaml that uses the
oneOf
keyword and I tried the latestopenapi-generator-cli-5.0.0-beta3
and the stableopenapi-generator-cli-4.3.1
to create a server stub for JAX-RS Jersey:The generated jax-rs server code produces the following compile error. This error with produced by both tested openapi-generator versions (4.3.1 and 5.0.0-beta3) even though the bugfix of #7263 in 5.0.0-beta3 should have resolved the issue.
openapi-generator version
Generation Details
java -jar openapi-generator-cli-5.0.0-beta.jar generate -i openapi.yaml -g jaxrs-jersey -o jax-rs-server/
Steps to reproduce
debugging
debugging/openapi.yaml
debugging
debugging/jax-rs-jersey
cd debugging && ava -jar openapi-generator-cli-5.0.0-beta3.jar generate -i openapi.yaml -g jaxrs-jersey -o jax-rs-server/
Related issues/PRs
#7263
#7789
#7414
#7256
#7235
Sponsorship
I am happy to sponsor this fix with 200$
cc @wing328
The text was updated successfully, but these errors were encountered: