I'm writing a JSON schema structure to validate an output JSON from various API's I'm using.
I have the following JSON structure:
"Stocks": {
"description": "some stock data",
"type": "array",
"items: {
"type": "object",
"properties": {
"unknown_property1": {
"type": "object",
"properties": {
"value":{"type":"integer"},
"ticker":{"type":"string"}
}
},
"unknown_property2": {
"type": "object",
"properties": {
"value":{"type":"integer"},
"ticker":{"type":"string"}
}
}
}
}
}
In place of the unknown properties, I'd like to have a method for introducing variation to those values. They are always going to be string.
I've seen this post, though it stops before getting to the nesting-level I'm interested in.
How can I leave unknown_property(1/2) ambiguous while ensuring that their values are objects?
Thank you.