-
Notifications
You must be signed in to change notification settings - Fork 12
Array
Peter Svetlichny edited this page Aug 3, 2015
·
3 revisions
Validation for array types.
Schema
"schema": {
"items": [{}],
"additionalItems": {"type": "integer"}
}
API
var schema = json
.items([json.schema()])
.additionalItems(json.integer());
Schema
"schema": {"maxItems": 2}
API
var schema = json.maxItems(2);
Schema
"schema": {"minItems": 1}
API
var schema = json.minItems(1);
Schema
"schema": {"uniqueItems": true}
API
var schema = json.uniqueItems(true);