File tree 1 file changed +2
-3
lines changed
aws_lambda_powertools/event_handler
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
from typing import Any , Dict , List , Optional
2
2
3
- from aws_lambda_powertools .event_handler .openapi .models import SecurityScheme
4
3
from aws_lambda_powertools .utilities .data_classes .shared_functions import get_header_value
5
4
6
5
@@ -73,7 +72,7 @@ def extract_origin_header(resolver_headers: Dict[str, Any]):
73
72
74
73
def _validate_openapi_security_parameters (
75
74
security : List [Dict [str , List [str ]]],
76
- security_schemes : Optional [Dict [str , "SecurityScheme" ]] = None ,
75
+ security_schemes : Optional [Dict [str , Any ]] = None ,
77
76
) -> bool :
78
77
"""
79
78
This function checks if all security requirements listed in the 'security'
@@ -84,7 +83,7 @@ def _validate_openapi_security_parameters(
84
83
----------
85
84
security: List[Dict[str, List[str]]]
86
85
A list of security requirements
87
- security_schemes: Optional[Dict[str, "SecurityScheme" ]]
86
+ security_schemes: Optional[Dict[str, Any ]]
88
87
A dictionary mapping security scheme names to their corresponding security scheme objects.
89
88
90
89
Returns
You can’t perform that action at this time.
0 commit comments