You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: airbyte_cdk/sources/declarative/declarative_component_schema.yaml
+5
Original file line number
Diff line number
Diff line change
@@ -2977,6 +2977,11 @@ definitions:
2977
2977
anyOf:
2978
2978
- "$ref": "#/definitions/CustomRequester"
2979
2979
- "$ref": "#/definitions/HttpRequester"
2980
+
url_requester:
2981
+
description: Requester component that describes how to prepare HTTP requests to send to the source API to extract the url from polling response by the completed async job.
2982
+
anyOf:
2983
+
- "$ref": "#/definitions/CustomRequester"
2984
+
- "$ref": "#/definitions/HttpRequester"
2980
2985
download_requester:
2981
2986
description: Requester component that describes how to prepare HTTP requests to send to the source API to download the data provided by the completed async job.
description="Requester component that describes how to prepare HTTP requests to send to the source API to extract the url from polling response by the completed async job.",
description="Requester component that describes how to prepare HTTP requests to send to the source API to download the data provided by the completed async job.",
url_response=self.url_requester.send_request(stream_slice=stream_slice) # type: ignore # we expect url_requester to always be presented, otherwise raise an exception as we cannot proceed with the report
251
+
ifnoturl_response:
252
+
raiseAirbyteTracedException(
253
+
internal_message="Always expect a response or an exception from url_requester",
254
+
failure_type=FailureType.system_error,
255
+
)
256
+
257
+
yieldfromself.urls_extractor.extract_records(url_response) # type: ignore # we expect urls_extractor to always return list of strings
0 commit comments