Bones/node_modules/is-my-json-valid/test/json-schema-draft4/minItems.json

29 lines
693 B
JSON
Raw Normal View History

2017-05-17 13:45:25 -04:00
[
{
"description": "minItems validation",
"schema": {"minItems": 1},
"tests": [
{
"description": "longer is valid",
"data": [1, 2],
"valid": true
},
{
"description": "exact length is valid",
"data": [1],
"valid": true
},
{
"description": "too short is invalid",
"data": [],
"valid": false
},
{
"description": "ignores non-arrays",
"data": "",
"valid": true
}
]
}
]