Interface CustomResponseValidator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CustomResponseValidator
User-defined validation for a response.
  • Method Summary

    Modifier and Type
    Method
    Description
    validate(Response response, ApiOperation apiOperation)
    Validates a response against a given api operation.
  • Method Details

    • validate

      ValidationReport validate(@Nonnull Response response, @Nonnull ApiOperation apiOperation)
      Validates a response against a given api operation.
      Parameters:
      response - The response to validate
      apiOperation - The operation to validate the request against
      Returns:
      A validation report containing validation errors