Enterprise only. The response schema validator plugin adds a schema validation before the gateway returns the response to the end-user or before it’s merged in the endpoint with the rest of the backends. See: https://www.krakend.io/docs/enterprise/endpoints/response-schema-validator/
Get JSON SchemaBundleIdentifier | https://schemas.sourcemeta.com/krakend/v2.2/plugin/response-schema-validator.json |
---|---|
Base Dialect | Draft7 |
Dialect | http://json-schema.org/draft-07/schema# |
Size | 0.001866 MB |
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.sourcemeta.com/krakend/v2.2/plugin/response-schema-validator.json",
"title": "Response Schema Validator",
"description": "Enterprise only. The response schema validator plugin adds a schema validation before the gateway returns the response to the end-user or before it’s merged in the endpoint with the rest of the backends.\n\nSee: https://www.krakend.io/docs/enterprise/endpoints/response-schema-validator/",
"type": "object",
"required": [ "schema" ],
"properties": {
"error": {
"title": "Error definition",
"description": "In case the validation fails, the error definition containing body and status.\n\nSee: https://www.krakend.io/docs/enterprise/endpoints/response-schema-validator/",
"examples": [
{
"body": "We couldn't process you request, try again later.",
"status": 401
}
],
"type": "object",
"properties": {
"body": {
...
See the full schema