Open LuisPatino92 opened 8 months ago
Hello,
The YAML cookbook outlines scenarios where quotations are necessary. Currently, the parser is losing values in certain cases.
For input like turtle-doves: two, the parser produces the expected result:
turtle-doves: two
Input like wildcard_in_double_quotes: "*" results in data loss:
wildcard_in_double_quotes: "*"
Input:
CustomStatements: [ { "Effect": "Allow", "Principal": "*", "Action": "execute-api: Invoke", "Resource": ["execute-api: /*"], }, ]
Produces these leaves inside a big mapping branch:
The desired output should resemble:
I would be more than happy to contribute a fix for this issue. If given the green light, I'll proceed with opening a pull request to address these concerns.
Hello,
The YAML cookbook outlines scenarios where quotations are necessary. Currently, the parser is losing values in certain cases.
Correct case:
For input like
turtle-doves: two
, the parser produces the expected result:Problematic case:
Input like
wildcard_in_double_quotes: "*"
results in data loss:Additional problematic case:
Input:
Produces these leaves inside a big mapping branch:
The desired output should resemble:
I would be more than happy to contribute a fix for this issue. If given the green light, I'll proceed with opening a pull request to address these concerns.