Skip to content

Updated parameter mapper typing #11413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# https://docs.aws.amazon.com/apigateway/latest/developerguide/request-response-data-mappings.html
import json
import logging
from typing import TypedDict
from typing import Any, TypedDict

from localstack.utils.json import extract_jsonpath
from localstack.utils.strings import to_str
Expand Down Expand Up @@ -253,7 +253,7 @@ def _retrieve_parameter_from_invocation_request(
)

def _retrieve_parameter_from_context_variables(
self, expr: str, context_variables: ContextVariables
self, expr: str, context_variables: dict[str, Any]
) -> str | None:
# we're using JSON path here because we could access nested properties like `context.identity.sourceIp`
return self._get_json_path_from_dict(context_variables, expr)
Expand Down
Loading