jsonbinpack
Version:
A space-efficient schema-driven binary JSON serialization format based on JSON Schema
34 lines (33 loc) • 944 B
JSON
[
{
"description": "validation of date strings",
"schema": {"format": "date"},
"tests": [
{
"description": "a valid date string",
"data": "1963-06-19",
"valid": true
},
{
"description": "an invalid date string",
"data": "06/19/1963",
"valid": false
},
{
"description": "only RFC3339 not all of ISO 8601 are valid",
"data": "2013-350",
"valid": false
},
{
"description": "invalidates non-padded month dates",
"data": "1998-1-20",
"valid": false
},
{
"description": "invalidates non-padded day dates",
"data": "1998-01-1",
"valid": false
}
]
}
]