File tree 1 file changed +4
-2
lines changed
aws_lambda_powertools/event_handler
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1600,7 +1600,8 @@ def get_openapi_schema(
1600
1600
security_schemes = security_schemes ,
1601
1601
):
1602
1602
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" ,
1604
1605
)
1605
1606
1606
1607
if not route .include_in_schema :
@@ -1651,7 +1652,8 @@ def _get_openapi_security(
1651
1652
1652
1653
if not _validate_openapi_security_parameters (security = security , security_schemes = security_schemes ):
1653
1654
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" ,
1655
1657
)
1656
1658
1657
1659
return security
You can’t perform that action at this time.
0 commit comments