A JSON schema validator for the KrakenD API Gateway
Include in your krakend.json
the JSON Schema configuration associated to every endpoint
needing it. For instance:
{
"version": "2",
"endpoints": [
{
"endpoint": "/foo",
"extra_config": {
"github.com/devopsfaith/krakend-jsonschema": {
YOUR SCHEMA HERE
}
}
}
]
}
The configuration key "github.com/devopsfaith/krakend-jsonschema"
takes directly as value the schema definition.
Examples of schema can be found here