Skip to content

Commit 093905b

Browse files
Addressing Heitor's feedback
1 parent ce070f3 commit 093905b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

aws_lambda_powertools/event_handler/api_gateway.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,8 @@ def get_openapi_schema(
16001600
security_schemes=security_schemes,
16011601
):
16021602
raise SchemaValidationError(
1603-
"Security configuration was not found in security_schemas or security_schema was not defined.",
1603+
"Security configuration was not found in security_schemas or security_schema was not defined. "
1604+
"See: https://docs.powertools.aws.dev/lambda/python/latest/core/event_handler/api_gateway/#security-schemes",
16041605
)
16051606

16061607
if not route.include_in_schema:
@@ -1651,7 +1652,8 @@ def _get_openapi_security(
16511652

16521653
if not _validate_openapi_security_parameters(security=security, security_schemes=security_schemes):
16531654
raise SchemaValidationError(
1654-
"Security configuration was not found in security_schemas or security_schema was not defined.",
1655+
"Security configuration was not found in security_schemas or security_schema was not defined. "
1656+
"See: https://docs.powertools.aws.dev/lambda/python/latest/core/event_handler/api_gateway/#security-schemes",
16551657
)
16561658

16571659
return security

0 commit comments

Comments
 (0)