projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ed5118815ee933dabd490e6de54d103e59100f08
[yaffs-website]
/
json-schema-draft4
/
minItems.json
1
[
2
{
3
"description": "minItems validation",
4
"schema": {"minItems": 1},
5
"tests": [
6
{
7
"description": "longer is valid",
8
"data": [1, 2],
9
"valid": true
10
},
11
{
12
"description": "exact length is valid",
13
"data": [1],
14
"valid": true
15
},
16
{
17
"description": "too short is invalid",
18
"data": [],
19
"valid": false
20
},
21
{
22
"description": "ignores non-arrays",
23
"data": "",
24
"valid": true
25
}
26
]
27
}
28
]