ErikWittern / openapi-snippet

Generates code snippets for given Swagger / Open API documents
MIT License
120 stars 67 forks source link

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

Open wshirey opened 7 years ago

wshirey commented 7 years ago

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 commented 6 years ago

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

rohit-gohri commented 4 years ago

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 commented 2 years ago

Same problem here. Have you resolved this issue?

viktor-borysiuk commented 6 months ago

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