Skip to content

Commit a232da7

Browse files
author
Michael Brewer
committed
docs(validation): Correct typing for parameters
1 parent fb6839a commit a232da7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aws_lambda_powertools/utilities/validation/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def validate_data_against_schema(data: Dict, schema: Dict, formats: Optional[Dic
4040
raise SchemaValidationError(message)
4141

4242

43-
def unwrap_event_from_envelope(data: Dict, envelope: str, jmespath_options: Dict) -> Any:
43+
def unwrap_event_from_envelope(data: Dict, envelope: str, jmespath_options: Optional[Dict]) -> Any:
4444
"""Searches data using JMESPath expression
4545
4646
Parameters

aws_lambda_powertools/utilities/validation/validator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def handler(event, context):
133133

134134
def validate(
135135
event: Dict,
136-
schema: Dict = None,
136+
schema: Dict,
137137
formats: Optional[Dict] = None,
138138
envelope: str = None,
139139
jmespath_options: Dict = None,

0 commit comments

Comments
 (0)