-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override global @SecurityRequirements
with empty value on resource
#382
Comments
@yreifschneider - did you try using an empty |
@MikeEdgar an empty One possible solution would be to return an optional list to allow generation of an empty repeatable annotation. Do you think this is a viable solution? |
@yreifschneider - please try to annotate the class that does not require authorization with |
@MikeEdgar Thanks for your response. |
@yreifschneider - please look for the ability to use an empty |
I have a JAX-RS Application with a global security configuration:
I want to remove this security requirement for a single resource, thus not requiring authentication for this endpoint. I tried to achieve this by specifying an empty
@SecurityRequirements()
annotation on the resource method like so:However, this does not work. The generated specification does not reflect this annotation with an empty security requirement. Is there another way to achieve this, without removing the global security requirement definition?
I am building the application with Quarkus 1.5.2.Final which uses smallrye-open-api 1.2.4.
The text was updated successfully, but these errors were encountered: