Class OperationFilter
java.lang.Object
io.quarkus.smallrye.openapi.deployment.filter.OperationFilter
- All Implemented Interfaces:
org.eclipse.microprofile.openapi.OASFilter
This filter replaces the former AutoTagFilter and AutoRolesAllowedFilter and has three functions:
- Add operation descriptions based on the associated Java method name handling the operation
- Add operation tags based on the associated Java class of the operation
- Add security requirements based on discovered
RolesAllowed,PermissionsAllowed, andAuthenticatedannotations.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOperationFilter(Map<String, ClassAndMethod> classNameMap, Map<String, List<String>> rolesAllowedMethodReferences, List<String> authenticatedMethodReferences, String defaultSecuritySchemeName, boolean doAutoTag, boolean doAutoOperation, boolean alwaysIncludeScopesValidForScheme) -
Method Summary
Modifier and TypeMethodDescriptionvoidfilterOpenAPI(org.eclipse.microprofile.openapi.models.OpenAPI openAPI) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.microprofile.openapi.OASFilter
filterAPIResponse, filterCallback, filterHeader, filterLink, filterOperation, filterParameter, filterPathItem, filterRequestBody, filterSchema, filterSecurityScheme, filterServer, filterTag
-
Field Details
-
EXT_METHOD_REF
- See Also:
-
-
Constructor Details
-
OperationFilter
-
-
Method Details
-
filterOpenAPI
public void filterOpenAPI(org.eclipse.microprofile.openapi.models.OpenAPI openAPI) - Specified by:
filterOpenAPIin interfaceorg.eclipse.microprofile.openapi.OASFilter
-