mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-28 09:05:38 +00:00
40 lines
923 B
JSON
40 lines
923 B
JSON
|
[
|
||
|
{
|
||
|
"description": "required validation",
|
||
|
"schema": {
|
||
|
"properties": {
|
||
|
"foo": {},
|
||
|
"bar": {}
|
||
|
},
|
||
|
"required": ["foo"]
|
||
|
},
|
||
|
"tests": [
|
||
|
{
|
||
|
"description": "present required property is valid",
|
||
|
"data": {"foo": 1},
|
||
|
"valid": true
|
||
|
},
|
||
|
{
|
||
|
"description": "non-present required property is invalid",
|
||
|
"data": {"bar": 1},
|
||
|
"valid": false
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"description": "required default validation",
|
||
|
"schema": {
|
||
|
"properties": {
|
||
|
"foo": {}
|
||
|
}
|
||
|
},
|
||
|
"tests": [
|
||
|
{
|
||
|
"description": "not required by default",
|
||
|
"data": {},
|
||
|
"valid": true
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|