awslabs / goformation

GoFormation is a Go library for working with CloudFormation templates.
Apache License 2.0
847 stars 195 forks source link

FunctionUrlConfig not defined in SAM schema #561

Closed gmcquistin closed 1 year ago

gmcquistin commented 1 year ago

Given this SAM template:

AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
  GetFunction:
    Type: AWS::Serverless::Function
    Properties:
      Handler: src/index.handler
      Runtime: nodejs18.x
      FunctionUrlConfig:
        AuthType: NONE

YAML Schema, via VS Code AWS Toolkit, reports the following:

Property FunctionUrlConfig is not allowed. yaml-schema: aws://sam.schema.json

This property is documented^1 but is defined in neither the AWS CloudFormation resource specification nor sam.schema.json.

Is it necessary to wait for the resource spec itself to be updated, or can the schema file in this repo be updated manually?

Thanks!

rubenfonseca commented 1 year ago

Hi @gmcquistin thank you for opening this issue. Do you think you could try to open a PR to fix the problem?

gmcquistin commented 1 year ago

Yes, certainly! 😊