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

A namespace with '/' creates issues in the swagger-ui #251

Closed
jnguyenx opened this issue Mar 7, 2017 · 1 comment
Closed

A namespace with '/' creates issues in the swagger-ui #251

jnguyenx opened this issue Mar 7, 2017 · 1 comment
Labels
Milestone

Comments

@jnguyenx
Copy link

jnguyenx commented Mar 7, 2017

With flask-restplus 0.10.1, having a forward slash in the name space will translate into a weird encoding in swagger-ui. For example, modifying the todo list example as is:

ns = api.namespace('todos/foo', description='TODO operations')

in the swagger-ui this / will be encoded to %2F and it'll be impossible to open the menu by clicking on it.

flask-restplus

I couldn't track down where the encoding was happening, and was wondering if someone had encountered the same issue.

@jnguyenx
Copy link
Author

I tracked it down to be a swagger-ui issue, it's fixed after 2.2.6.

swagger-api/swagger-ui#2372

Any plans to update swagger-ui?

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

No branches or pull requests

2 participants