insomnia-documenter icon indicating copy to clipboard operation
insomnia-documenter copied to clipboard

Cannot use Insomnia Tags

Open zhanbolat18 opened this issue 5 years ago • 3 comments
trafficstars

Hello. First of all, Thanks For So Best App!!!)))

When i use Insomnia Tags for fill response body or query params (with JsonPath from another request), I get a tag flag as string like a

### Пример ответ
<!-- RESPONSE -->
    ```
{% response 'raw', 'req_6f556f2bae314b9591e79fdcbce9754c', '', 'always', 60 %}
    ```
<!-- ENDRESPONSE -->

Tag Screen Tag Screen

Result Screen

Is it possible to fix this???

zhanbolat18 avatar Nov 13 '20 17:11 zhanbolat18

Functions-to-perform are not supported (and will likely not be, since they're meant to be used from within Insomnia). Insomnia doesn't evaluate functions when exporting to JSON, and making the documenter evaluate them on runtime is not something I want to do, for design reasons.

Related issues #14 #21

jozsefsallai avatar Nov 15 '20 19:11 jozsefsallai

Functions-to-perform are not supported (and will likely not be, since they're meant to be used from within Insomnia). Insomnia doesn't evaluate functions when exporting to JSON, and making the documenter evaluate them on runtime is not something I want to do, for design reasons.

Related issues #14 #21

I have opened an issue on the repo since that time. hopefully, they would attend to it ASAP.

https://github.com/Kong/insomnia/issues/2688

devhammed avatar Nov 30 '20 14:11 devhammed

I've found a workaround for outputting aliases instead of the flag. This is not really useful for your case, where you'd like the tag contents on the documentation. However, in case you only need a nice placeholder for the tag, you could do this:

  1. Define environment variables. Make sure to place the Template Tag between double quotes. image

  2. Use those variables as you would use the tags. image

  3. Export the documentation. You should have the environment variable names as expected. image

hugoaboud avatar Aug 18 '21 22:08 hugoaboud