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

endpoint validation completely fails if the app is mounted at a subpath #104

Closed
mmerickel opened this issue Dec 18, 2020 · 0 comments · Fixed by #263
Closed

endpoint validation completely fails if the app is mounted at a subpath #104

mmerickel opened this issue Dec 18, 2020 · 0 comments · Fixed by #263

Comments

@mmerickel
Copy link
Member

I have an openapi.yaml defined with endpoints like /foo, /bar, etc. I then invoke

    config.pyramid_openapi3_spec(spec_path, route='/api/openapi.yaml')
    config.pyramid_openapi3_add_explorer('/api/')

and I mount my routes at /api/foo, /api/bar, etc. There doesn't seem to be a way to coordinate these such that everyone is happy because pyramid_openapi3 is expecting the api document paths to be relative to the root of the application and there's no way to tell pyramid_openapi3 that I'm actually mounting the routes/spec at a subpath inside the application.

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