Rx: Simple, Extensible Schemata
//arr
An array is a list of values, with each value validated against the same schema.
Matches three or more integers:
{
"type": "//arr",
"contents": "//int",
"length": { "min": 3 }
}
contents must be supplied and must be a valid schema.
length is optional, and is a range to be checked against the number of items in tested lists.
/.meta/arr, the schema for //arr definitions:
{
"type": "//rec",
"required": {
"type": { "type": "//str", "value": "//arr" },
"contents": "/.meta/schema"
},
"optional": {
"length": "/.meta/range"
}
}