Stripe Resource: object type fields show error that they are string only

  • 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.

1 Like

I experience the Retool editor complaining incorrectly all the time, including this issue.

+1000 for improved editor errors, would massively improve the developer experience!

Thanks for flagging! I'll reach out when this is fixed