Skip to content

Commit 569cdbd

Browse files
committed
fix(data-classes): Correct typing for json_body
1 parent e57b59e commit 569cdbd

File tree

1 file changed

+3
-1
lines changed
  • aws_lambda_powertools/utilities/data_classes

1 file changed

+3
-1
lines changed

aws_lambda_powertools/utilities/data_classes/common.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ def is_base64_encoded(self) -> Optional[bool]:
5858

5959
@property
6060
def body(self) -> Optional[str]:
61+
"""Submitted body of the request as a string"""
6162
return self.get("body")
6263

6364
@property
64-
def json_body(self) -> Dict:
65+
def json_body(self) -> Any:
66+
"""Parses the submitted body as json"""
6567
return json.loads(self["body"])
6668

6769
@property

0 commit comments

Comments
 (0)