javanile / yamlinc

Compose multiple YAML files into one with $include tag. Split Swagger/OpenAPI into multiple YAML files.
MIT License
114 stars 22 forks source link

excessive quoting #28

Open jason-henriksen opened 4 years ago

jason-henriksen commented 4 years ago

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?