From 71f83ce7b426e45238f64fc11edc9045c280d992 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 29 Jun 2021 17:00:08 +0400 Subject: [PATCH] fix(schema): CloudFormation Updates (#387) Co-authored-by: Paul Maddox --- cloudformation/serverless/aws-serverless-function.go | 6 +++--- schema/sam.go | 8 +------- schema/sam.schema.json | 8 +------- 3 files changed, 5 insertions(+), 17 deletions(-) diff --git a/cloudformation/serverless/aws-serverless-function.go b/cloudformation/serverless/aws-serverless-function.go index 01b6824122..451209a5f6 100644 --- a/cloudformation/serverless/aws-serverless-function.go +++ b/cloudformation/serverless/aws-serverless-function.go @@ -33,7 +33,7 @@ type Function struct { CodeSigningConfigArn string `json:"CodeSigningConfigArn,omitempty"` // CodeUri AWS CloudFormation Property - // Required: true + // Required: false // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction CodeUri *Function_CodeUri `json:"CodeUri,omitempty"` @@ -78,7 +78,7 @@ type Function struct { FunctionName string `json:"FunctionName,omitempty"` // Handler AWS CloudFormation Property - // Required: true + // Required: false // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction Handler string `json:"Handler,omitempty"` @@ -143,7 +143,7 @@ type Function struct { Role string `json:"Role,omitempty"` // Runtime AWS CloudFormation Property - // Required: true + // Required: false // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction Runtime string `json:"Runtime,omitempty"` diff --git a/schema/sam.go b/schema/sam.go index 4a54de1314..4f35d777ad 100644 --- a/schema/sam.go +++ b/schema/sam.go @@ -102435,11 +102435,6 @@ var SamSchema = `{ "$ref": "#/definitions/AWS::Serverless::Function.VpcConfig" } }, - "required": [ - "CodeUri", - "Handler", - "Runtime" - ], "type": "object" }, "Type": { @@ -102458,8 +102453,7 @@ var SamSchema = `{ } }, "required": [ - "Type", - "Properties" + "Type" ], "type": "object" }, diff --git a/schema/sam.schema.json b/schema/sam.schema.json index e6c672f419..0de3335e26 100644 --- a/schema/sam.schema.json +++ b/schema/sam.schema.json @@ -102432,11 +102432,6 @@ "$ref": "#/definitions/AWS::Serverless::Function.VpcConfig" } }, - "required": [ - "CodeUri", - "Handler", - "Runtime" - ], "type": "object" }, "Type": { @@ -102455,8 +102450,7 @@ } }, "required": [ - "Type", - "Properties" + "Type" ], "type": "object" },