yamlinc icon indicating copy to clipboard operation
yamlinc copied to clipboard

excessive quoting

Open jason-henriksen opened this issue 5 years ago • 0 comments

input yaml:

  OrdersCancel:
    Type: AWS::Serverless::Function

output yaml:

OrdersCancel:
  Type: 'AWS::Serverless::Function'

Notice the spurious single quotes added in the above code block Because of this I get the following error message when trying to use the cloudformation yaml: Error: Template does not have any APIs connected to Lambda functions

Additionally: input yaml:

Globals:
  Api:
    # Allows an application running locally on port 8080 to call this API
    Cors:
      AllowMethods: "'*'"
      AllowHeaders: "'*'"
      AllowOrigin: "'*'"

output yaml:

Globals:
  Api:
    Cors:
      AllowMethods: '''*'''
      AllowHeaders: '''*'''
      AllowOrigin: '''*'''

Why are my double quotes being randomly turned into single quotes?

jason-henriksen avatar Jun 17 '20 18:06 jason-henriksen