insomnia-documenter
insomnia-documenter copied to clipboard
Cannot use Insomnia Tags
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 -->


Is it possible to fix this???
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
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
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:
-
Define environment variables. Make sure to place the Template Tag between double quotes.

-
Use those variables as you would use the tags.

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