Skip to content

js-yaml contains an issue with dumping strings starting with 0 and containing 8 or 9 #10

@Hallian

Description

@Hallian

js-yaml contains an issue with dumping strings startings with 0 and containing 8 or 9.

Steps to reproduce:

Test template:

AWSTemplateFormatVersion: '2010-09-09'

Parameters:
  DevelopmentStack:
    Type: List
    Default:
      - '00004'
      - '00059'

Run cfbuild template -t test-template.yaml -o built_template.yaml

Expected result:

AWSTemplateFormatVersion: '2010-09-09'

Parameters:
  DevelopmentStack:
    Type: List
    Default:
      - '00004'
      - '00059'

Actual result:

AWSTemplateFormatVersion: '2010-09-09'

Parameters:
  DevelopmentStack:
    Type: List
    Default:
      - '00004'
      - 00059

This issue can be fixed by upgrading to js-yaml. This work has been done in PR #9

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