diff --git a/airbyte_cdk/sources/declarative/declarative_component_schema.yaml b/airbyte_cdk/sources/declarative/declarative_component_schema.yaml index 85faaca6a..8f0092108 100644 --- a/airbyte_cdk/sources/declarative/declarative_component_schema.yaml +++ b/airbyte_cdk/sources/declarative/declarative_component_schema.yaml @@ -4142,11 +4142,9 @@ definitions: - stream_slice - stream_template_config examples: - - ["data"] - - ["data", "records"] - - ["data", 1, "name"] - - ["data", "{{ components_values.name }}"] - - ["data", "*", "record"] + - ["name"] + - ["retriever", "requester", "url"] + - ["retriever", "requester", "{{ components_values.field }}"] - ["*", "**", "name"] value: title: Value @@ -4777,6 +4775,12 @@ interpolation: - title: stream_slice description: This variable is deprecated. Use stream_interval or stream_partition instead. type: object + - title: components_values + description: The record object produced by the components resolver for which a stream will be generated. + type: object + examples: + - name: "accounts" + id: 1234 macros: - title: now_utc description: Returns the current date and time in the UTC timezone. diff --git a/airbyte_cdk/sources/declarative/models/declarative_component_schema.py b/airbyte_cdk/sources/declarative/models/declarative_component_schema.py index 0de10753f..fb004a65e 100644 --- a/airbyte_cdk/sources/declarative/models/declarative_component_schema.py +++ b/airbyte_cdk/sources/declarative/models/declarative_component_schema.py @@ -1463,11 +1463,9 @@ class ComponentMappingDefinition(BaseModel): ..., description="A list of potentially nested fields indicating the full path where value will be added or updated.", examples=[ - ["data"], - ["data", "records"], - ["data", 1, "name"], - ["data", "{{ components_values.name }}"], - ["data", "*", "record"], + ["name"], + ["retriever", "requester", "url"], + ["retriever", "requester", "{{ components_values.field }}"], ["*", "**", "name"], ], title="Field Path",