public class ResponseValidator extends Object
| Constructor and Description |
|---|
ResponseValidator(SchemaValidator schemaValidator)
Construct a new response validator with the given schema validator.
|
| Modifier and Type | Method and Description |
|---|---|
com.networknt.status.Status |
validateResponse(io.undertow.server.HttpServerExchange exchange,
SwaggerOperation swaggerOperation)
Validate the given response against the API operation.
|
public ResponseValidator(SchemaValidator schemaValidator)
schemaValidator - The schema validator to use when validating response bodiespublic com.networknt.status.Status validateResponse(io.undertow.server.HttpServerExchange exchange,
SwaggerOperation swaggerOperation)
exchange - The exchange to validateswaggerOperation - The API operation to validate the response againstCopyright © 2017. All rights reserved.