generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 176
fix(event-handler): allow event handler response to return array #4725
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
Merged
svozza
merged 19 commits into
aws-powertools:main
from
arnabrahman:4593-handler-array-response
Nov 11, 2025
+282
−141
Merged
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
1c1b1f1
refactor: Update HandlerResponse type to use JSONValue instead of JSO…
arnabrahman e1d5afc
refactor: Enhance error handling by adding #errorBodyToResponse and #…
arnabrahman 4517ec3
refactor: Rename #tryAddErrorCodeToBody to #tryAddingErrorCodeToBody …
arnabrahman b50a14d
refactor: HTTP method tests for array response
arnabrahman 5d2d7b3
refactor: Update decorators tests to return expected responses for bo…
arnabrahman 829e20a
refactor: Simplify HTTP method tests by using describe.each for reque…
arnabrahman ef33697
test: Add test for handling array response from error handler
arnabrahman 6c2ad1f
refactor: Simplify error handling by extracting status code logic fro…
arnabrahman cbd789d
refactor: Update response body in decorators tests to reflect expecte…
arnabrahman a1ca85b
Merge branch 'main' into 4593-handler-array-response
arnabrahman 4605774
test: Enhance routing tests to include array response handling
arnabrahman 1f262af
refactor: Consolidate HTTP method tests for object and array responses
arnabrahman d2d98f6
test: Add array response handling for all HTTP methods in decorators …
arnabrahman 849dab1
test: Update request routing test description to specify object response
arnabrahman f94addd
refactor: Extract Lambda class creation into a separate function for …
arnabrahman fb1ea55
Merge branch 'main' into 4593-handler-array-response
arnabrahman d20ac1f
refactor: Rename errorBodyToResponse method to errorBodyToWebResponse…
arnabrahman bdfc053
refactor: Move handler creation functions to helpers for better organ…
arnabrahman 8e8bbe5
Merge branch 'main' into 4593-handler-array-response
svozza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.