Search code examples
bruno

Bruno: Is there a way to escape variable substitution in Bruno?


Is there currently a way to escape variable substitution in Bruno? In our use case, we have a query body that contains something like "{{VALUE_THAT_IS_NOT_RELEVANT_FOR_BRUNO}}"

When we run that query, Bruno interprets it as a variable that needs substituting, but because no environment variable exists with that name, Bruno substitutes a blank value. In our case, we would want to escape the variable substitution characters "{{" without that escape character (whatever it may be) showing up in the subsequent query request body


Solution

  • Adding a \ before the variable should do the trick

    enter image description here

    Bruno uses the handlebars templating engine for variable replacement. I think this is the section in the docs.