JSON Schema Validation API
$ curl "https://assertible.com/json" -d'{
"schema": {"type":"object"},
"json": {}
}'
{"errors": [], "valid": true}
It's that simple. Try it out by copying the curl command into your terminal.
Try it online
Enter a JSONSchema on the left and your JSON on the right to validate it against the schema, or use the API.
JSONSchema
JSON
API Examples
Assertible's free JSON Schema API is designed to be easy to use and flexible for a variety of use-cases.
$ curl "https://assertible.com/json" -d'{
"schema": {
"type": "object",
"properties": {
"billing_address": { "$ref": "#/definitions/address" },
"shipping_address": { "$ref": "#/definitions/address" }
},
"definitions": {
"address": {
"type": "object",
"properties": {
"street_address": { "type": "string" },
"city": { "type": "string" },
"state": { "type": "string" }
},
"required": ["street_address", "city", "state"]
}
}
},
"json": {
"shipping_address": {
"street_address": "1600 Pennsylvania Avenue NW",
"city": "Washington",
"state": "DC"
},
"billing_address": {
"street_address": "1st Street SE",
"city": "Washington",
"state": "DC"
}
}
}'
{"errors":[], "valid": true}
$ curl "https://assertible.com/json" -d'{
"schema": {
"type": "object",
"properties": {
"foo": { "type": "object" },
"bar": { "type": "string" }
},
"required": [
"foo"
]
},
"json": {"bar": [1,2,3]}
}'
{
"valid": false,
"errors": [
"failed to validate required properties\
- one of `[\"foo\"]` prop(s) missing in `{\"bar\":[1,2,3]}`",
"Error at .bar: failed to validate type\
- `[1,2,3]` is not a string"
]
}
This API does not support external JSON Schema references. Please submit a chat or send us a message if this is required for your testing purposes. See the JSON Schema API documentation for more details.
This JSON Schema Validation API falls under Assertible's terms of service and is intended for testing and exploratory purposes. We do not make any guarantees about the uptime and availability of the Free JSON Schema Validation API.
Continually test your JSON Schema documents
Using Assertible, you can monitor your API and validate your endpoints against JSON Schema documents every time you deploy and on scheduled

Proudly trusted by these great companies
Proudly trusted by these great companies










