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

No escape in interpolate value #62

Open
throrin19 opened this issue May 29, 2023 · 0 comments
Open

No escape in interpolate value #62

throrin19 opened this issue May 29, 2023 · 0 comments

Comments

@throrin19
Copy link
Contributor

throrin19 commented May 29, 2023

Hello,

I have a problem with forEach in a case the string contains special chars for JSON (like ").

If we try to use the $forEach with one of this value, we have the error Interpolated template is not a valid JSON :

Example :

$forEach:
  iterator: 
    - test: '{"example": "example"}'
  template:
    $forEach.key: $forEach.value

to avoid that, I think we should make a JSON.stringify on the value part of interpolated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant