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 authored 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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.