In my schema definitions, I have a type, with an integer property which should be any of a "fixed" set of numbers. The problem is that this "fixed set" may be changed often.
"person": {
"type": "object",
"properties": {
"aproperty": {
"type": "integer",
"enum": [1, 12, 30 ... , 1000]
},
}
},
Is there any way to reference this array from a remote service (which will have the most updated set)?
"person": {
"type": "object",
"properties": {
"aproperty": {
"type": "integer",
"$ref": "http://localhost:8080/fixed_set"
},
}
},
I tried $ref, but no luck. If "ref" is part of the solution, what should de backend return?
{
"enum": [1, 12, 30 ... , 1000]
}
or
"enum": [1, 12, 30 ... , 1000]
or
[1, 12, 30 ... , 1000]