openapi-snippet
openapi-snippet copied to clipboard
Don't URL encode brackets [{,}] for path template parameters
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.
This is the output of httpSnippet library btw, so this library does not do the encoding.
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.
Same problem here. Have you resolved this issue?