Skip to content
New issue

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

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

Already on GitHub? # to your account

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

Open
mmerickel opened this issue Dec 18, 2020 · 0 comments
Open

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.

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

No branches or pull requests

1 participant