File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
aws_lambda_powertools/event_handler Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11from typing import Any , Dict , List , Optional
22
3- from aws_lambda_powertools .event_handler .openapi .models import SecurityScheme
43from aws_lambda_powertools .utilities .data_classes .shared_functions import get_header_value
54
65
@@ -73,7 +72,7 @@ def extract_origin_header(resolver_headers: Dict[str, Any]):
7372
7473def _validate_openapi_security_parameters (
7574 security : List [Dict [str , List [str ]]],
76- security_schemes : Optional [Dict [str , "SecurityScheme" ]] = None ,
75+ security_schemes : Optional [Dict [str , Any ]] = None ,
7776) -> bool :
7877 """
7978 This function checks if all security requirements listed in the 'security'
@@ -84,7 +83,7 @@ def _validate_openapi_security_parameters(
8483 ----------
8584 security: List[Dict[str, List[str]]]
8685 A list of security requirements
87- security_schemes: Optional[Dict[str, "SecurityScheme" ]]
86+ security_schemes: Optional[Dict[str, Any ]]
8887 A dictionary mapping security scheme names to their corresponding security scheme objects.
8988
9089 Returns
You can’t perform that action at this time.
0 commit comments