Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServerVariable.enum should be optional #188

Closed
Soremwar opened this issue Oct 24, 2024 · 1 comment · Fixed by #194
Closed

ServerVariable.enum should be optional #188

Soremwar opened this issue Oct 24, 2024 · 1 comment · Fixed by #194
Labels
bug Something isn't working

Comments

@Soremwar
Copy link

Soremwar commented Oct 24, 2024

Per https://spec.openapis.org/oas/v3.1.0#fixed-fields-4, enum is An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty.

I think this was interpreted as enum being a required property, when in reality it's optional and treating it as such removes the ability for applications to set the specificied variables with an arbitrary value

Without enum:
image

With enum:
image

@Soremwar Soremwar added the bug Something isn't working label Oct 24, 2024
@luolingchun
Copy link
Owner

Thanks for your report, I will fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants