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