Class OperationWrapper


  • public class OperationWrapper
    extends Object
    Encapsulates an operation with its HTTP Method. In OAS, the PathItem structure contains more than what we'd want to evaluate for operation-only checks.
    • Method Detail

      • getOperation

        public io.swagger.v3.oas.models.Operation getOperation()
        Gets the operation associated with the http method
        Returns:
        An operation instance
      • getHttpMethod

        public io.swagger.v3.oas.models.PathItem.HttpMethod getHttpMethod()
        Gets the http method associated with the operation
        Returns:
        The http method
      • getOpenAPI

        public io.swagger.v3.oas.models.OpenAPI getOpenAPI()
        Returns the OpenAPI specification.
        Returns:
        The the OpenAPI specification.