-
Goal: I'm trying to set a metadata field on a Stripe API query.
-
Steps: Create a query. Add parameter "metadata". Enter a JS object literal.
-
Details:
The API expects an object in the field.
When I enter an object literal in the field, ie {foo: "bar"}
, I get an error messages saying the field must be a string. However, running this WORKS.
When I enter it another way, such as {{ JSON.stringify({foo: "bar"}) }}
the editor is happy, but this is the wrong format for the API.
-
Screenshots:
-
Desired result: Don't complain about the object literal