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

Server variables without enum don't get validated #889

Open
yoelkohn opened this issue Jan 18, 2024 · 0 comments
Open

Server variables without enum don't get validated #889

yoelkohn opened this issue Jan 18, 2024 · 0 comments

Comments

@yoelkohn
Copy link

Describe the bug
If server variable is defined, with a default but no enum, per OpenAPI docs, it should allow any arbitrary value. This implementation, however, will create an enum array with the default value as its sole element, and ignore any value that doesn't match the default.

To Reproduce
Create spec with

servers:
    -   url: /api/v0.1/t/{variableName}
        variables:
          variableName:
            default: blocked

then navigate to /api/v0.1/t/notBlocked

Actual behavior
Path is completely ignored

Expected behavior
Path should be validated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant