Validates a JSON object against a schema.
Version 1
HTTP RequestPOST
/ado/v1/JsonSchemaValidate
Header
Parameter | Description |
---|---|
Ocp-Apim-Subscription-Key | The subscription key you received when you purchased a plan. |
Request Body
Mandatory
Parameter | Type | Description |
---|---|---|
schema | object | The JSON schema as defined by the global JSON schema standard. |
data | object | A JSON object that is used to validate against the schema. |
Examples
There are numerous examples that can be taken from this document:
https://json-schema.org/understanding-json-schema/UnderstandingJSONSchema.pdf
So please feel free to use it as a reference. The examples below are taken from that document but is only one of numerous that could be used to demonstrate the possibilities
Valid JSON
Invalid JSON