Hi
Is that any way to validate schema if my key dynamic to
"container": {
"type": "object",
"properties": {
"image": {
"type": "string"
},
"environment_variables": {
"type": "object",
"properties": {
"^[a-z]+$": {
"type": "string"
}
},
"required": [
"^[a-z]+$"
]
}
},
"required": [
"image",
"environment_variables"
]
},
environment_variable has dynamic key and value (just lower case letters)
how can I check that
if I have 3 environment_variables
"environment_variables": {
"type": "object",
"properties": {
"letter": {
"type": "string"
},
"number": {
"type": "string"
},
"color": {
"type": "string"
}
},
"required": [
"letter",
"number",
"color"
]
}
3 random environment_variables are ‘letter’, ‘number’, ‘color’
I wanna use that schema validation when I POST, but if not possible at least I wanna use at my GET call, maybe when I post I can set variable(for that key) and use at that variable at my json schema… Looking solutions