valijson/tests/data/schemas/allof_integers_and_numbers.schema.json
Tristan Penman 4c9864de73 Initial commit.
This commit contains the third major design of a C++ library for JSON Schema validation.

It is definitely not what I would consider production-ready, but I do think that the overall design of the library is robust.
2013-10-30 07:51:11 +11:00

20 lines
355 B
JSON

{
"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
}
]
}