@knowark/validarkjs
Version:
Simple Data Validation Library
27 lines (26 loc) • 670 B
JSON
[
{
"description": "validation without $schema",
"comment": "minLength is the same across all drafts",
"schema": {
"minLength": 2
},
"tests": [
{
"description": "a 3-character string is valid",
"data": "foo",
"valid": true
},
{
"description": "a 1-character string is not valid",
"data": "a",
"valid": false
},
{
"description": "a non-string is valid",
"data": 5,
"valid": true
}
]
}
]