Interface RequestValidator

All Known Implementing Classes:
DefaultRequestValidator

public interface RequestValidator
  • Method Details

    • setOperation

      void setOperation(RestOpenApiOperation operation)
      Sets the default operation.
    • getOperation

      RestOpenApiOperation getOperation()
      Gets the default operation.
    • validate

      Set<String> validate(org.apache.camel.Exchange exchange, RestOpenApiOperation operation)
      Validates the Exchange with the custom operation.
      Parameters:
      exchange - the exchange
      operation - operation to use
      Returns:
      null if no validation error, otherwise a set of errors
    • validate

      default Set<String> validate(org.apache.camel.Exchange exchange)
      Validates the Exchange with the default operation
      Parameters:
      exchange - the exchange
      Returns:
      null if no validation error, otherwise a set of errors