valijson/tests/data/schemas/allof_integers_and_numbers.schema.json

20 lines
355 B
JSON
Raw Normal View History

{
"comment": "Document must contain an array of integers, all unique.",
"allOf": [
{
"items": {
"type": "integer"
},
"additionalItems": false,
"type": "array"
},
{
"items": {
"type": "number"
},
"additionalItems": false,
"type": "array",
"uniqueItems": true
}
]
}