Class RequestValidator


  • public class RequestValidator
    extends Object
    • Constructor Detail

      • RequestValidator

        public RequestValidator​(SchemaValidator schemaValidator)
        Construct a new request validator with the given Open API validator.
        Parameters:
        schemaValidator - The schema validator to use when validating request
    • Method Detail

      • validateRequest

        public com.networknt.status.Status validateRequest​(com.networknt.openapi.NormalisedPath requestPath,
                                                           LightLambdaExchange exchange,
                                                           com.networknt.openapi.OpenApiOperation openApiOperation)
        Validate the request against the given API operation
        Parameters:
        requestPath - normalised path
        exchange - The HttpServerExchange to validate
        openApiOperation - OpenAPI operation
        Returns:
        A validation report containing validation errors