From 23ba89e48939434640ff42aa5ccbd1b2473feab9 Mon Sep 17 00:00:00 2001 From: lmossman Date: Thu, 21 Aug 2025 14:10:05 -0700 Subject: [PATCH 1/4] add interpolation variable description for components_values --- .../sources/declarative/declarative_component_schema.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/airbyte_cdk/sources/declarative/declarative_component_schema.yaml b/airbyte_cdk/sources/declarative/declarative_component_schema.yaml index 85faaca6a..ab7b342c3 100644 --- a/airbyte_cdk/sources/declarative/declarative_component_schema.yaml +++ b/airbyte_cdk/sources/declarative/declarative_component_schema.yaml @@ -4777,6 +4777,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. From 17bb208aa8f29d75ae5e64c4b9fb32af9bd50a11 Mon Sep 17 00:00:00 2001 From: lmossman Date: Thu, 21 Aug 2025 14:10:28 -0700 Subject: [PATCH 2/4] fix examples for component mapping definition field_path --- .../sources/declarative/declarative_component_schema.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/airbyte_cdk/sources/declarative/declarative_component_schema.yaml b/airbyte_cdk/sources/declarative/declarative_component_schema.yaml index ab7b342c3..d2d6ff10d 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 From 64bd4ecc9a308ca853966408188495e5dd55fa5c Mon Sep 17 00:00:00 2001 From: lmossman Date: Thu, 21 Aug 2025 14:16:09 -0700 Subject: [PATCH 3/4] update models --- .../declarative/models/declarative_component_schema.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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", From 1ddac34ab7b04ef67e01359cf4fc5809cb9f7150 Mon Sep 17 00:00:00 2001 From: lmossman Date: Thu, 21 Aug 2025 14:17:07 -0700 Subject: [PATCH 4/4] remove trailing spaces --- .../sources/declarative/declarative_component_schema.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte_cdk/sources/declarative/declarative_component_schema.yaml b/airbyte_cdk/sources/declarative/declarative_component_schema.yaml index d2d6ff10d..8f0092108 100644 --- a/airbyte_cdk/sources/declarative/declarative_component_schema.yaml +++ b/airbyte_cdk/sources/declarative/declarative_component_schema.yaml @@ -4780,7 +4780,7 @@ interpolation: type: object examples: - name: "accounts" - id: 1234 + id: 1234 macros: - title: now_utc description: Returns the current date and time in the UTC timezone.