-
Notifications
You must be signed in to change notification settings - Fork 35
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
YAML template doesn't work with escaped characters in strings #309
Comments
Thanks for the detailed bug report. This is caused by the parser for template args as you pointed out. The specific issue is that when an escaped literal is found, the parser drops the fact that it's escaped,
@abhinav Do you remember why we don't keep the escape character as part of the literal? Should we instead have an escaped literal function that's used so it can be identified and appropriately escaped? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I defined the following yaml template:
When I try to execute this file I get the following error which originates from the yab tool:
I cloned the yab repo locally and tried to debug a little bit.
The problem happens during
templateargs.ProcessMap(t.Request, templateArgs)
and specifically during the processing of theextraPaymentData
string field. If I understand correctly since there are no templates in the string that I specified then the code should follow this conditional and be a noop:However it looks like the
rendered
string is missing some character escapes from the original string, for example\"
and\/
. Because of this the code doesn't take theAvoid unmarshalling if the value did not change
path.And then the error happens during the next step which is:
The text was updated successfully, but these errors were encountered: