Skip to content

Commit

Permalink
fix(cfnSpec): wrong type for SAM API properties GatewayResponses and …
Browse files Browse the repository at this point in the history
…Models (#19885)

fixes #19870 

----

### All Submissions:

* [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies)

### New Features

* [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)?
	* [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
peterwoodworth committed Apr 13, 2022
1 parent dd4d49f commit b214ede
Showing 1 changed file with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"ResourceTypes": {
"AWS::Serverless::Api": {
"Properties": {
"GatewayResponses": {
"patch": {
"description": "Make the GatewayResponses property of AWS::Serverless::Api accept JSON",
"operations": [
{
"op": "remove",
"path": "/PrimitiveItemType"
},
{
"op": "remove",
"path": "/Type"
},
{
"op": "add",
"path": "/PrimitiveType",
"value": "Json"
}
]
}
},
"Models": {
"patch": {
"description": "Make the Models property of AWS::Serverless::Api accept JSON",
"operations": [
{
"op": "remove",
"path": "/PrimitiveItemType"
},
{
"op": "remove",
"path": "/Type"
},
{
"op": "add",
"path": "/PrimitiveType",
"value": "Json"
}
]
}
}
}
}
}
}

0 comments on commit b214ede

Please sign in to comment.