Class OperationWrapper
- java.lang.Object
-
- org.openapitools.codegen.validations.oas.OperationWrapper
-
public class OperationWrapper extends Object
Encapsulates an operation with its HTTP Method. In OAS, thePathItemstructure contains more than what we'd want to evaluate for operation-only checks.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.swagger.v3.oas.models.PathItem.HttpMethodgetHttpMethod()Gets the http method associated with the operationio.swagger.v3.oas.models.OpenAPIgetOpenAPI()Returns the OpenAPI specification.io.swagger.v3.oas.models.OperationgetOperation()Gets the operation associated with the http method
-
-
-
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.
-
-