From bccc71b90531fb6bba8465b578fc2accc4dc6e34 Mon Sep 17 00:00:00 2001 From: Manuel Trejo Rico <35301479+manuel-trejo-rico@users.noreply.github.com> Date: Mon, 22 Jun 2020 06:58:46 +0200 Subject: [PATCH] feat(schema): Add OpenApiVersion field to serverless Api (#281) --- cloudformation/serverless/aws-serverless-api.go | 5 +++++ generate/sam-2016-10-31.json | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/cloudformation/serverless/aws-serverless-api.go b/cloudformation/serverless/aws-serverless-api.go index 0c433a4c51..6a9069b977 100644 --- a/cloudformation/serverless/aws-serverless-api.go +++ b/cloudformation/serverless/aws-serverless-api.go @@ -67,6 +67,11 @@ type Api struct { // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi Name string `json:"Name,omitempty"` + // OpenApiVersion AWS CloudFormation Property + // Required: false + // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi + OpenApiVersion string `json:"OpenApiVersion,omitempty"` + // StageName AWS CloudFormation Property // Required: true // See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi diff --git a/generate/sam-2016-10-31.json b/generate/sam-2016-10-31.json index 7849d20dc1..8a5a8d0728 100644 --- a/generate/sam-2016-10-31.json +++ b/generate/sam-2016-10-31.json @@ -252,6 +252,12 @@ "Required": false, "Type": "AccessLogSetting", "UpdateType": "Immutable" + }, + "OpenApiVersion": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessapi", + "Required": false, + "PrimitiveType": "String", + "UpdateType": "Immutable" } } },