openapi-snippet icon indicating copy to clipboard operation
openapi-snippet copied to clipboard

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

Open wshirey opened this issue 7 years ago • 4 comments

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.

wshirey avatar Mar 08 '17 20:03 wshirey

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

darrenjennings avatar Apr 02 '18 16:04 darrenjennings

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.

rohit-gohri avatar Aug 11 '20 06:08 rohit-gohri

Same problem here. Have you resolved this issue?

ran-huang avatar Jul 15 '22 06:07 ran-huang