I have an object that has keys being numbers and its values strings:
{
0: 'blah',
2: 'blah'
}
What this object is, each key is the index of an array that contained an error, and the string describes that error. The closest I can figure out for this schema is:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"0": {
"type": "string"
},
"2": {
"type": "string"
}
},
"required": [
"0",
"2"
]
}
However this is inacurate. Maybe next time only index "4" would have an error. Is there a way to describe dyanmic keys in in object?