-
Notifications
You must be signed in to change notification settings - Fork 47
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
pyramid_openapi3 messes up routes when the server prefix matches #146
Comments
Huh, I've personally never used Can you provide a minimal runnable example that exercises this bug? Ideally as a fork of this repo and add it to the |
I've made an example here #147 You'll see it's a bit different because I don't know how else to replicate a proper Examples of the url are
Surely nobody is writing that in the routes. So is there a need to remove them ever? Edit: Well I guess it's possible that people actually write |
What exactly is |
Any of the |
I often use the following: servers:
- url: /api See https://github.com/niteoweb/pyramid-realworld-example-app/blob/master/src/conduit/openapi.yaml#L625 |
openapi.yaml:
pyramid config:
(along with this config to deal with the prefix on the server)
This code
pyramid_openapi3/pyramid_openapi3/__init__.py
Lines 371 to 377 in 2904c34
Will remove the
/v
from/version
and then complain that route "/version" is missing even though it is clearly present in the code. Are prefixes ever part of the route that they need to be removed?The text was updated successfully, but these errors were encountered: