mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-23 06:35:38 +00:00
43 lines
1 KiB
JSON
43 lines
1 KiB
JSON
[
|
|
{
|
|
"description": "minimum validation",
|
|
"schema": {"minimum": 1.1},
|
|
"tests": [
|
|
{
|
|
"description": "above the minimum is valid",
|
|
"data": 2.6,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "below the minimum is invalid",
|
|
"data": 0.6,
|
|
"valid": false
|
|
},
|
|
{
|
|
"description": "ignores non-numbers",
|
|
"data": "x",
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "exclusiveMinimum validation",
|
|
"schema": {
|
|
"minimum": 1.1,
|
|
"exclusiveMinimum": true
|
|
},
|
|
"tests": [
|
|
{
|
|
"description": "above the minimum is still valid",
|
|
"data": 1.2,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "boundary point is invalid",
|
|
"data": 1.1,
|
|
"valid": false
|
|
}
|
|
]
|
|
}
|
|
]
|