Skip to content

Commit 5c79fc4

Browse files
committed
chore: keep message optional in SchemaValidationError
1 parent 8457c25 commit 5c79fc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws_lambda_powertools/utilities/validation/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class SchemaValidationError(Exception):
88

99
def __init__(
1010
self,
11-
message: str,
11+
message: Optional[str] = None,
1212
validation_message: Optional[str] = None,
1313
name: Optional[str] = None,
1414
path: Optional[List] = None,
@@ -21,7 +21,7 @@ def __init__(
2121
2222
Parameters
2323
----------
24-
message : str
24+
message : str, optional
2525
Powertools formatted error message
2626
validation_message : str, optional
2727
Containing human-readable information what is wrong

0 commit comments

Comments
 (0)