Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.85.0 (to main) #3543

Merged
merged 5 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samtranslator/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.84.0"
__version__ = "1.85.0"
1 change: 1 addition & 0 deletions samtranslator/plugins/api/implicit_http_api_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def _add_route_settings_to_api(

# Handle Resource-level conditions if necessary
api_route_settings = resource.properties.get("RouteSettings", {})
sam_expect(api_route_settings, api_id, "RouteSettings").to_be_a_map()
event_route_settings = event_properties.get("RouteSettings", {})
if condition:
event_route_settings = make_conditional(condition, event_properties.get("RouteSettings", {}))
Expand Down
394 changes: 272 additions & 122 deletions samtranslator/schema/schema.json

Large diffs are not rendered by default.

374 changes: 291 additions & 83 deletions schema_source/cloudformation-docs.json

Large diffs are not rendered by default.

394 changes: 272 additions & 122 deletions schema_source/cloudformation.schema.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Resources:
ChatApi:
Type: AWS::Serverless::HttpApi
Properties:
Name: !Ref 'ChatApiName'
RouteSettings:
- RouteKey: !Sub 'ANY /${ChatApiName}'
ThrottlingBurstLimit: 100
ThrottlingRateLimit: 100
14 changes: 14 additions & 0 deletions tests/translator/output/error_http_api_list_route_settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"_autoGeneratedBreakdownErrorMessage": [
"Invalid Serverless Application Specification document. ",
"Number of errors found: 1. ",
"Resource with id [ChatApi] is invalid. ",
"Property 'RouteSettings' should be a map."
],
"errorMessage": "Invalid Serverless Application Specification document. Number of errors found: 1. Resource with id [ChatApi] is invalid. Property 'RouteSettings' should be a map.",
"errors": [
{
"errorMessage": "Resource with id [ChatApi] is invalid. Property 'RouteSettings' should be a map."
}
]
}
Loading