mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-13 10:32:58 +01:00
4c9864de73
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.
20 lines
355 B
JSON
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
|
|
}
|
|
]
|
|
} |