Excluded JAX-RS classes are visible in openapi
See original GitHub issueDescribe the bug
When JAX-RS classes are excluded via @IfBuildProfile
(#15215), it is still visible in the generated openapi document.
Expected behavior
When a JAX-RS class is excluded from the current build via an IfBuildProperty
annotation (or similar), it should also be excluded from openapi document generation.
Actual behavior
The endpoints of the JAX-RS class are visible in openapi and swagger, but can not be called.
To Reproduce
Steps to reproduce the behavior:
- Create a JAX-RS class
- include
quarkus-smallrye-openapi
extension - add
@IfBuildProfile("foo")
to the class - run in dev mode
- open swagger ui
- see that the JAX-RS class is visible
Environment (please complete the following information):
Quarkus version or git rev
1.13.0.Final
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
REST clients are documented in Open API and ... - GitHub
The Open API documentation is correctly displayed in Swagger UI. 1-only-controller. If I add the JAX RS annotations to FooClient as follows:.
Read more >F.A.Q - Springdoc-openapi
You can define your own groups of API based on the combination of: API paths and packages to scan. Each group should have...
Read more >Exclude Models or properties from swagger response
I was fetching data from db and setting it to user object and passing that user object to JAX-RS response builder. Below is...
Read more >OpenApiFeature - Apache Software Foundation
CXF OpenApiFeature --> <bean id="openApiFeature" class="org.apache.cxf.jaxrs.openapi.OpenApiFeature"> <!-- customize some of the properties --> </bean> .
Read more >Generating REST API documentation with OpenAPI - IBM
The scanner goes through classes that are annotated with the OpenAPI 3.0 annotations on class definition and annotated with the @Path JAX-RS annotation....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, will do
Let me know if you need anything from me
On Thu, Apr 8, 2021, 10:42 Phillip Krüger @.***> wrote: