Skip to content

Commit

Permalink
feat(schema): Add OpenApiVersion field to serverless Api (awslabs#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-trejo-rico committed Jun 22, 2020
1 parent ccdfed3 commit bccc71b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cloudformation/serverless/aws-serverless-api.go
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions generate/sam-2016-10-31.json
Expand Up @@ -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"
}
}
},
Expand Down

0 comments on commit bccc71b

Please sign in to comment.