-
Notifications
You must be signed in to change notification settings - Fork 456
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
fix(lib): escape newlines in terraform functions #1233
Conversation
06e5e7f
to
2d82cd6
Compare
Previously newlines were added to the synthesised JSON, which JSON only accepts if escaped Closes #1165
This might feel counter-intuitive but quotes are not required for an 'outer' expression as the string will get quoted somewhere else already. Only inner expressions need those extra quotes as they would else be treated as raw expressions like e.g. `var.something`.
…l objects as inputs to functions) This has previously only been done for objects but not for arrays.
5a48e5a
to
99a2a32
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work 🎉
I added two commits (one fixing a thing for rawStrings and another one fixing a bug which existed before this PR) and rebased onto main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Previously newlines were added to the synthesised JSON, which JSON only accepts if escaped${} into $ ${}
This PR also escapes
Closes #1165