[Bug] Template Tag plugin: can't use quotes in `string`
See original GitHub issue- Insomnia Version: 6.4.2
- Operating System: Windows 10
Details
You can reproduce the bug in these conditions:
- using a Template Tag plugin
- one of the plugin
argsis of typestring
Now, try using quotes character " in the value for the string type argument.
Even though the “Live Preview” shows a valid value, the request JSON body parser throws an error.
Maybe this is a duplicate of #1030, but I am not sure of it.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to tell eslint that you prefer single quotes around your ...
Another useful option is to allow single or double quotes as long as the string contains an escapable quote like "lorem ipsum 'donor'...
Read more >Chart Development Tips and Tricks - Helm
Know Your Template Functions · Quote Strings, Don't Quote Integers · Using the 'include' Function · Using the 'required' function · Using the...
Read more >Documentation: 15: 4.1. Lexical Structure - PostgreSQL
To include a single-quote character within a string constant, write two ... PostgreSQL also accepts “escape” string constants, which are an extension to...
Read more >Groovy Language Documentation
reserved keywords can be used for method names if quoted def "abstract"() ... An empty slashy string cannot be represented with a double...
Read more >Template Tags - django cms 3.11.0 documentation
All placeholders in a template will be auto-detected and can be filled with plugins when editing a page that is using said template....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This was fixed here: https://github.com/getinsomnia/insomnia/commit/8adee60c8671291712b8ad33f6bbc1e43c453c16
The response tag will now store the filter value in base64 so the quotes won’t interfere
I see… It works fine when the template engine renders the JSON body provided to the request…
But… why not also apply some parsing to the JSON before it is provided to the linter?
Instead of having
{% mytag '"some value"' %}string reaching JSON linter… we could applyJSON.stringifyon it, so the linter would receive a valid syntax: