Skip to content

Indicate that parameterObject has dynamic enum ?Β #2313

Open
@IOR88

Description

@IOR88

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions