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
However, Quarkus' MicroProfile OpenAPI generator does not generate the proper OpenAPI specification for either anyOf or oneOf. It is generating a invalid specification that does not make sense instead.
Expected behavior
The Quarkus' MicroProfile OpenAPI generator should generate the following specification for an array type that utilizes the anyOf or oneOf field.
anyOf:
@Schema(type = SchemaType.ARRAY, anyOf = { ... })
schema:
type: arrayitems:
anyOf:
- ...
oneOf:
@Schema(type = SchemaType.ARRAY, oneOf= { ... })
schema:
type: arrayitems:
oneOf:
- ...
Actual behavior
The Quarkus' MicroProfile OpenAPI generator presently generates the following specification for an array type that utilizes the anyOf or oneOf field.
Describe the bug
I am trying to define a response type that looks like the following in OpenAPI.
I'm using the following MicroProfile OpenAPI annotations to do so.
However, Quarkus' MicroProfile OpenAPI generator does not generate the proper OpenAPI specification for either anyOf or oneOf. It is generating a invalid specification that does not make sense instead.
Expected behavior
The Quarkus' MicroProfile OpenAPI generator should generate the following specification for an array type that utilizes the anyOf or oneOf field.
anyOf:
oneOf:
Actual behavior
The Quarkus' MicroProfile OpenAPI generator presently generates the following specification for an array type that utilizes the anyOf or oneOf field.
anyOf:
oneOf:
How to Reproduce?
Reproducer: https://github.com/colesturza/quarkus-microprofile-openapi-bug-reproducer
Output of
uname -a
orver
Linux desktop 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.16.11.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Tested with
Gradle 8.2.1
andApache Maven 3.9.3
Additional information
No response
The text was updated successfully, but these errors were encountered: