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

Issue: Loss of Values When Using Quotations in YAML #58

Open
LuisPatino92 opened this issue Dec 6, 2023 · 0 comments
Open

Issue: Loss of Values When Using Quotations in YAML #58

LuisPatino92 opened this issue Dec 6, 2023 · 0 comments

Comments

@LuisPatino92
Copy link

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:
Correct Case

Problematic case:

Input like wildcard_in_double_quotes: "*" results in data loss:
Problematic Case

Additional problematic case:

Input:

  CustomStatements:
    [
      {
        "Effect": "Allow",
        "Principal": "*",
        "Action": "execute-api: Invoke",
        "Resource": ["execute-api: /*"],
      },
    ]

Produces these leaves inside a big mapping branch:
Additional Problematic Case

The desired output should resemble:
Desired Output

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.

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