Skip to content

Normalize paths relative to basePath in all cases #92

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

Merged
merged 1 commit into from
Oct 3, 2016
Merged

Normalize paths relative to basePath in all cases #92

merged 1 commit into from
Oct 3, 2016

Conversation

asteinlein
Copy link
Contributor

Paths that include the basePath as set in options on the APISpec
instance were normalized to not have the basePath as part of each path.
However, this didn't work with the Flask plugin as normalization occured
before the plugin generated it's URLs.

This fixes the issue by also normalizing paths after plugin processing in
add_path.

Fixes #78.

Paths that include the basePath as set in options on the APISpec
instance were normalized to not have the basePath as part of each path.
However, this didn't work with the Flask plugin as normalization occured
before the plugin generated it's URLs.

This fixes the issue by also normalizing paths after plugin processing in
`add_path`.

Fixes #78.
@sloria
Copy link
Member

sloria commented Oct 3, 2016

Apologies for the delay in getting to this. The behavior looks correct. Thanks!

@sloria sloria merged commit d1e9f83 into marshmallow-code:dev Oct 3, 2016
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

Successfully merging this pull request may close these issues.

Core path does not support swagger basePath
2 participants