Interface RequestValidator
- All Known Implementing Classes:
DefaultRequestValidator
public interface RequestValidator
-
Method Summary
Modifier and TypeMethodDescriptionGets the default operation.voidsetOperation(RestOpenApiOperation operation) Sets the default operation.validate(org.apache.camel.Exchange exchange) Validates theExchangewith the default operationvalidate(org.apache.camel.Exchange exchange, RestOpenApiOperation operation) Validates theExchangewith the custom operation.
-
Method Details
-
setOperation
Sets the default operation. -
getOperation
RestOpenApiOperation getOperation()Gets the default operation. -
validate
Validates theExchangewith the custom operation.- Parameters:
exchange- the exchangeoperation- operation to use- Returns:
- null if no validation error, otherwise a set of errors
-
validate
Validates theExchangewith the default operation- Parameters:
exchange- the exchange- Returns:
- null if no validation error, otherwise a set of errors
-