I have json schema like this:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"items": {
"type": "object",
"properties": {
"country": {
"type": "string",
"maxLength": 2,
"enum": ["aa", "bb"]
}
},
"required": [
"country"
]
}
}
And json in this format:
[
{"country": "aa"},
]
I want schema to check whether the json file contains all countries listed in enum:
[
{"country": "aa"},
{"country": "bb"},
]
Is it possible?