-
Notifications
You must be signed in to change notification settings - Fork 36
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
Is there support for server variables? #89
Comments
Hi @Nitwel, thanks for raising this! We don't support server variables at the moment, but it sounds like a valid enhancement, and I'm happy to take an PR for it. The code for matching responses to OpenAPI paths is here. Whoever fixes this should probably edit |
For reference, the relevant part of the official OpenAPI 3 specification is https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#server-object |
@Xotabu4, I think your suggestion may be a bit different to @Nitwel's issue. OpenAPI 3 has I'm not sure how manually configuring our validator to ignore parts of the API spec would accomplish that goal. In any case, I think this package should be as easy to use as possible, so we should try to avoid manual config and arguments unless vital. What do you think? Let me know if I have misunderstood you |
As a general update on this issue, both @JonnySpruce and I have branches with this feature implemented, but we are both too busy at the moment to review our work and get it merged. Anyone who wants us to prioritise this higher, please +1 the issue at the top :) |
Published! https://github.com/openapi-library/OpenAPIValidators/releases/tag/v0.13.0 Thanks to everyone for their patience and @JonnySpruce for a lot of the work. @Nitwel and others who requested this, would you mind confirming the issue is fixed? Please reopen if needed :) |
My current problem is that my api server is configured like this:
But when I try to make a request like
https://demo.directus.io/thumper/auth/authenticate
I get the error that the path does not match.The error:
The text was updated successfully, but these errors were encountered: