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
- Handle method-level `@RolesAllowed` that override class-level
`@RolesAllowed` values, fixesquarkusio#30997
- Render `BaseStream<T, S>` as array of `T` in OpenAPI document,
fixesquarkusio#30248 (via smallrye-open-api 3.3.0)
- Do not place scopes in OpenAPI security requirements unless the
security scheme is OAuth2 or OIDC, fixesquarkusio#27373
- Include only OIDC discovery URL in OpenAPI when auto-security is
active, fixesquarkusio#21126
Signed-off-by: Michael Edgar <[email protected]>
- Handle method-level `@RolesAllowed` that override class-level
`@RolesAllowed` values, fixesquarkusio#30997
- Render `BaseStream<T, S>` as array of `T` in OpenAPI document,
fixesquarkusio#30248 (via smallrye-open-api 3.3.0)
- Do not place scopes in OpenAPI security requirements unless the
security scheme is OAuth2 or OIDC, fixesquarkusio#27373
- Include only OIDC discovery URL in OpenAPI when auto-security is
active, fixesquarkusio#21126
Signed-off-by: Michael Edgar <[email protected]>
Describe the bug
The openapi for a resteasy-reactive resource like this is incorrect:
It documents the Stream class itself.
Expected behavior
I would expect the documentation to be generated as a List of SomeObject, i.e. the inner type of Stream.
This is also what the resource returns.
As workaround, I can annotate the method as follows, which produces the expected result:
Which correctly produces:
However, always having to add type and implementation (and not forgetting them / making copy & paste mistakes) becomes a bit cumbersome.
Can Stream please be automaticly detected?
Actual behavior
How to Reproduce?
Reproducer:
restresponse-openapi.zip
Output of
uname -a
orver
Microsoft Windows [Version 10.0.19044.2364]
Output of
java -version
openjdk 17.0.4 2022-07-19 OpenJDK Runtime Environment Temurin-17.0.4+8 (build 17.0.4+8) OpenJDK 64-Bit Server VM Temurin-17.0.4+8 (build 17.0.4+8, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.15.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) Maven home: C:\eclipse\tools\java\maven Java version: 17.0.4, vendor: Eclipse Adoptium, runtime: C:\eclipse\tools\java\17 Default locale: de_DE, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Additional information
No response
The text was updated successfully, but these errors were encountered: