Skip to content

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

@LuisPatino92

Description

@LuisPatino92

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions