-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix scanning of empty SecurityRequirements on resource class (#2012)
Signed-off-by: Michael Edgar <[email protected]>
- Loading branch information
Showing
6 changed files
with
45 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...ye/openapi/runtime/scanner/resources/jakarta/EmptySecurityRequirementsResourceMethod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package test.io.smallrye.openapi.runtime.scanner.resources.jakarta; | ||
|
||
import jakarta.ws.rs.GET; | ||
import jakarta.ws.rs.Path; | ||
|
||
import org.eclipse.microprofile.openapi.annotations.security.SecurityRequirements; | ||
|
||
@Path("/public") | ||
public class EmptySecurityRequirementsResourceMethod { | ||
|
||
@GET | ||
@SecurityRequirements | ||
public String getPublicResponse() { | ||
return "response value"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...lrye/openapi/runtime/scanner/resources/javax/EmptySecurityRequirementsResourceMethod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package test.io.smallrye.openapi.runtime.scanner.resources.javax; | ||
|
||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
|
||
import org.eclipse.microprofile.openapi.annotations.security.SecurityRequirements; | ||
|
||
@Path("/public") | ||
public class EmptySecurityRequirementsResourceMethod { | ||
|
||
@GET | ||
@SecurityRequirements | ||
public String getPublicResponse() { | ||
return "response value"; | ||
} | ||
} |