public class RequestValidator extends Object
| Constructor and Description |
|---|
RequestValidator(SchemaValidator schemaValidator)
Construct a new request validator with the given schema validator.
|
| Modifier and Type | Method and Description |
|---|---|
com.networknt.status.Status |
validateRequest(NormalisedPath requestPath,
io.undertow.server.HttpServerExchange exchange,
OpenApiOperation openApiOperation)
Validate the request against the given API operation
|
public RequestValidator(SchemaValidator schemaValidator)
schemaValidator - The schema validator to use when validating request bodiespublic com.networknt.status.Status validateRequest(NormalisedPath requestPath, io.undertow.server.HttpServerExchange exchange, OpenApiOperation openApiOperation)
requestPath - normalised pathexchange - The HttpServerExchange to validateopenApiOperation - OpenAPI operationCopyright © 2018. All rights reserved.