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

Don't URL encode brackets [{,}] for path template parameters #10

Open
wshirey opened this issue Mar 8, 2017 · 4 comments
Open

Don't URL encode brackets [{,}] for path template parameters #10

wshirey opened this issue Mar 8, 2017 · 4 comments

Comments

@wshirey
Copy link

wshirey commented Mar 8, 2017

Issue:
Given swagger path of /blogs/{blogId}, generated code snippets will have URL with text /blogs/%7DblogId%7D.

Suggestions:
Possibly leave brackets or put placeholder text like BLOGID as is done with query or body parameters.

@darrenjennings
Copy link

This is the output of httpSnippet library btw, so this library does not do the encoding.

@rohit-gohri
Copy link
Contributor

You can set placeholder using default value. But it only checks for parameters in the path and not in methods. Opened #51 to change that.

@ran-huang
Copy link

Same problem here. Have you resolved this issue?

@viktor-borysiuk
Copy link

Hey guys, faced with the same issue. Are there any updates regarding that?

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

No branches or pull requests

5 participants