mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 15:15:38 +00:00
29 lines
706 B
JSON
29 lines
706 B
JSON
|
[
|
||
|
{
|
||
|
"description": "maxItems validation",
|
||
|
"schema": {"maxItems": 2},
|
||
|
"tests": [
|
||
|
{
|
||
|
"description": "shorter is valid",
|
||
|
"data": [1],
|
||
|
"valid": true
|
||
|
},
|
||
|
{
|
||
|
"description": "exact length is valid",
|
||
|
"data": [1, 2],
|
||
|
"valid": true
|
||
|
},
|
||
|
{
|
||
|
"description": "too long is invalid",
|
||
|
"data": [1, 2, 3],
|
||
|
"valid": false
|
||
|
},
|
||
|
{
|
||
|
"description": "ignores non-arrays",
|
||
|
"data": "foobar",
|
||
|
"valid": true
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|