Skip to content

Commit ee58a5c

Browse files
author
Ran Isenberg
committed
cr fixes
1 parent a88fb89 commit ee58a5c

File tree

1 file changed

+0
-16
lines changed
  • aws_lambda_powertools/utilities/parser/models

1 file changed

+0
-16
lines changed

Diff for: aws_lambda_powertools/utilities/parser/models/apigw.py

-16
Original file line numberDiff line numberDiff line change
@@ -91,19 +91,3 @@ def check_message_id(cls, values):
9191
if message_id is not None and event_type != "MESSAGE":
9292
raise TypeError("messageId is available only when the `eventType` is `MESSAGE`")
9393
return values
94-
95-
@root_validator(pre=True)
96-
def check_both_http_methods(cls, values):
97-
http_method, req_ctx_http_method = values.get("httpMethod"), values.get("requestContext", {}).get(
98-
"httpMethod", ""
99-
)
100-
if http_method != req_ctx_http_method:
101-
raise TypeError("httpMethods and requestContext.httpMethod must be equal")
102-
return values
103-
104-
@root_validator(pre=True)
105-
def check_both_paths(cls, values):
106-
path, req_ctx_path = values.get("path"), values.get("requestContext", {}).get("path", "")
107-
if path != req_ctx_path:
108-
raise TypeError("path and requestContext.path must be equal")
109-
return values

0 commit comments

Comments
 (0)