Open
Description
I try to have a parameter, which enum values has to be requested from different endpoint. So I haven't found any way how I could do it in specification. I though about 2 ways or I indicate that enum is dynamic with additionalProperties or I use $ref as value for enum attribute but not sure if this will be with accordance to specification ?
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#parameterObject
{
"in": "query",
"name": "name",
"$ref" : "#/paths/enums/name",
"schema": {
"type": "object",
"additionalProperties": {
"dynamicEnum": "bool"
},
"enum": {"$ref" : "#/paths/enums/name"}
}
}
Any thoughts ?