Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use Insomnia Tags #35

Open
zhanbolat18 opened this issue Nov 13, 2020 · 3 comments
Open

Cannot use Insomnia Tags #35

zhanbolat18 opened this issue Nov 13, 2020 · 3 comments
Labels
upstream Issue depends on changes that need to be made in Insomnia

Comments

@zhanbolat18
Copy link

zhanbolat18 commented Nov 13, 2020

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???

@jozsefsallai
Copy link
Collaborator

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

@devhammed
Copy link
Collaborator

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.

Kong/insomnia#2688

@jozsefsallai jozsefsallai added the upstream Issue depends on changes that need to be made in Insomnia label May 21, 2021
@hugoaboud
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Issue depends on changes that need to be made in Insomnia
Projects
None yet
Development

No branches or pull requests

4 participants