json-schema-test
Version:
Testing JSON schemas against sample data
27 lines (26 loc) • 514 B
JSON
[
{
"description": "extended format: multiple schemas",
"schemas": [
{ "type": "integer" },
{ "type": "number", "multipleOf": 1 }
],
"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
}
]
}
]