Skip to content

Commit cf74322

Browse files
authored
Merge pull request #3543 from aws/release-v1.85.0
Release 1.85.0 (to main)
2 parents e8d1da7 + d7af889 commit cf74322

7 files changed

+860
-328
lines changed

samtranslator/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.84.0"
1+
__version__ = "1.85.0"

samtranslator/plugins/api/implicit_http_api_plugin.py

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def _add_route_settings_to_api(
124124

125125
# Handle Resource-level conditions if necessary
126126
api_route_settings = resource.properties.get("RouteSettings", {})
127+
sam_expect(api_route_settings, api_id, "RouteSettings").to_be_a_map()
127128
event_route_settings = event_properties.get("RouteSettings", {})
128129
if condition:
129130
event_route_settings = make_conditional(condition, event_properties.get("RouteSettings", {}))

samtranslator/schema/schema.json

+272-122
Large diffs are not rendered by default.

schema_source/cloudformation-docs.json

+291-83
Large diffs are not rendered by default.

schema_source/cloudformation.schema.json

+272-122
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Resources:
2+
ChatApi:
3+
Type: AWS::Serverless::HttpApi
4+
Properties:
5+
Name: !Ref 'ChatApiName'
6+
RouteSettings:
7+
- RouteKey: !Sub 'ANY /${ChatApiName}'
8+
ThrottlingBurstLimit: 100
9+
ThrottlingRateLimit: 100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"_autoGeneratedBreakdownErrorMessage": [
3+
"Invalid Serverless Application Specification document. ",
4+
"Number of errors found: 1. ",
5+
"Resource with id [ChatApi] is invalid. ",
6+
"Property 'RouteSettings' should be a map."
7+
],
8+
"errorMessage": "Invalid Serverless Application Specification document. Number of errors found: 1. Resource with id [ChatApi] is invalid. Property 'RouteSettings' should be a map.",
9+
"errors": [
10+
{
11+
"errorMessage": "Resource with id [ChatApi] is invalid. Property 'RouteSettings' should be a map."
12+
}
13+
]
14+
}

0 commit comments

Comments
 (0)