Skip to content

Commit b214ede

Browse files
fix(cfnSpec): wrong type for SAM API properties GatewayResponses and 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*
1 parent dd4d49f commit b214ede

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"ResourceTypes": {
3+
"AWS::Serverless::Api": {
4+
"Properties": {
5+
"GatewayResponses": {
6+
"patch": {
7+
"description": "Make the GatewayResponses property of AWS::Serverless::Api accept JSON",
8+
"operations": [
9+
{
10+
"op": "remove",
11+
"path": "/PrimitiveItemType"
12+
},
13+
{
14+
"op": "remove",
15+
"path": "/Type"
16+
},
17+
{
18+
"op": "add",
19+
"path": "/PrimitiveType",
20+
"value": "Json"
21+
}
22+
]
23+
}
24+
},
25+
"Models": {
26+
"patch": {
27+
"description": "Make the Models property of AWS::Serverless::Api accept JSON",
28+
"operations": [
29+
{
30+
"op": "remove",
31+
"path": "/PrimitiveItemType"
32+
},
33+
{
34+
"op": "remove",
35+
"path": "/Type"
36+
},
37+
{
38+
"op": "add",
39+
"path": "/PrimitiveType",
40+
"value": "Json"
41+
}
42+
]
43+
}
44+
}
45+
}
46+
}
47+
}
48+
}

0 commit comments

Comments
 (0)