YAML-PP-p5 icon indicating copy to clipboard operation
YAML-PP-p5 copied to clipboard

Getting a "Bad indendation in FLOWMAP" error

Open pplu opened this issue 4 years ago • 3 comments

Hi,

I found this piece of CloudFormation that YAML::PP 0.026 doesn't parse, although Cloudformation considers it valid YAML:

Resources:
  Resource1:
    Properties:
      Item: {
        'accountId': { 'N': '15' },
        'username': { 'S': 'user' }
      }
  Resource2:
    Type: "XXX"

You get the following error:

Line      : 7
Column    : 7
Message   : Bad indendation in FLOWMAP
Where     : local/lib/perl5/YAML/PP/Parser.pm line 197
YAML      : "}"
  at local/lib/perl5/YAML/PP/Loader.pm line 94.

bug? not implemented yet? Or is there any parser / schema option that I'm not aware of?

pplu avatar Feb 09 '21 18:02 pplu