Skip to content

Consider changing the enum type under Server Variable #976

@webron

Description

@webron

Right now the type is an array of primitive. Variables are not typed, we were just looking to restrict values to non-complex objects.

We can change it to string - which would simplify tooling. This will affect how the following example would be though:

    port:
      enum:
        - 8443
        - 443
      default: 8443

That would become:

    port:
      enum:
        - '8443'
        - '443'
      default: '8443'

which is a bit more annoying to write.

Changing the type of enum would also change the type of default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions