json-schema-test
Version:
Testing JSON schemas against sample data
28 lines (27 loc) • 522 B
JSON
[
{
"description": "passing async test",
"schema": {
"description": "Ajv-scpecific async schema",
"$async": true,
"type": "integer"
},
"tests": [
{
"description": "integer is valid",
"data": 1,
"valid": true
},
{
"description": "non-integer number is invalid",
"data": 1.1,
"valid": false
},
{
"description": "non-number is invalid",
"data": "foo",
"valid": false
}
]
}
]