Skip to content

Json Schema Response Validation

Response Schema Validation for API Endpoints

Configuration

The configuration is straightforward, as you only need to write the desired JSON schema you expect in the response at the endpoint or backend levels (you can place it in both). For example, to validate that the backend response has a specific schema, you would do:

Step 1: Click on endpoint open policies below we can able to see Response Schema Validator enable it.

Reponse

There are other attributes you can use. This is the configuration possible: Step 2:create endpoint click on designer pass the responsebody you can see provided fields.

error
body
content_type
status 

Reponse