Skip to content

Commit

Permalink
fix unbound request_json
Browse files Browse the repository at this point in the history
  • Loading branch information
burnash committed Feb 15, 2025
1 parent 2c267af commit b986f7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dlt/sources/rest_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ def paginate_dependent_resource(
method: HTTPMethodBasic,
path: str,
params: Dict[str, Any],
json: Optional[Dict[str, Any]],
paginator: Optional[BasePaginator],
data_selector: Optional[jsonpath.TJsonPath],
hooks: Optional[Dict[str, Any]],
Expand All @@ -381,7 +382,7 @@ def paginate_dependent_resource(
path=path,
item=item,
params=params,
request_json=request_json,
request_json=json,
resolved_params=resolved_params,
include_from_parent=include_from_parent,
incremental=incremental_object,
Expand Down Expand Up @@ -411,6 +412,7 @@ def paginate_dependent_resource(
method=endpoint_config.get("method", "get"),
path=endpoint_config.get("path"),
params=base_params,
json=request_json,
paginator=paginator,
data_selector=endpoint_config.get("data_selector"),
hooks=hooks,
Expand Down

0 comments on commit b986f7e

Please sign in to comment.