Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

JSON Schema Validation in APIGEE

I'm working on a requirement to validate the incoming JSON Payload before i send it out to the backend , but unfortunately i didn't get any specific idea to work on the requirement . One way i saw is to define the JSON Schema and only define the mandatory fields in the Schema and set allow additional field to false . Is there is any policy in APIGEE which can run a JSON schema validation in the proxy . And if anyone has a JavaScript example please share it  . I have tried hasOwnProperty from JS but it didn't worked on the nested elements .

0 5 3,226
5 REPLIES 5