Skip to content

Commit 8abeba1

Browse files
fix(declarative): Support nested patterns in dynamic stream templates
- Add generic object support to stream_template field in DynamicDeclarativeStream - Add generic object support to requester field in SimpleRetriever schemas - Add generic object support to stream field in ParentStreamConfig - Fixes validation regression introduced in PR #560 (commit f52bc2e) - Enables Airtable connector validation while maintaining backward compatibility - Allows with additional properties (e.g. path, http_method) Resolves validation issue: 'Validation against json schema defined in declarative_component_schema.yaml schema failed' Co-Authored-By: AJ Steers <[email protected]>
1 parent addd443 commit 8abeba1

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

airbyte_cdk/sources/declarative/declarative_component_schema.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,6 +1508,13 @@ definitions:
15081508
- "$ref": "#/definitions/SimpleRetriever"
15091509
- "$ref": "#/definitions/AsyncRetriever"
15101510
- "$ref": "#/definitions/CustomRetriever"
1511+
- type: object
1512+
properties:
1513+
$ref:
1514+
type: string
1515+
pattern: "^#/definitions/"
1516+
required: ["$ref"]
1517+
additionalProperties: true
15111518
incremental_sync:
15121519
title: Incremental Sync
15131520
description: Component used to fetch data incrementally based on a time field in the data.
@@ -2414,6 +2421,13 @@ definitions:
24142421
- "$ref": "#/definitions/SimpleRetriever"
24152422
- "$ref": "#/definitions/AsyncRetriever"
24162423
- "$ref": "#/definitions/CustomRetriever"
2424+
- type: object
2425+
properties:
2426+
$ref:
2427+
type: string
2428+
pattern: "^#/definitions/"
2429+
required: ["$ref"]
2430+
additionalProperties: true
24172431
schema_filter:
24182432
title: Schema Filter
24192433
description: Responsible for filtering fields to be added to json schema.
@@ -3214,6 +3228,13 @@ definitions:
32143228
anyOf:
32153229
- "$ref": "#/definitions/DeclarativeStream"
32163230
- "$ref": "#/definitions/StateDelegatingStream"
3231+
- type: object
3232+
properties:
3233+
$ref:
3234+
type: string
3235+
pattern: "^#/definitions/"
3236+
required: ["$ref"]
3237+
additionalProperties: true
32173238
parent_key:
32183239
title: Parent Key
32193240
description: The primary key of records from the parent stream that will be used during the retrieval of records for the current substream. This parent identifier field is typically a characteristic of the child records being extracted from the source API.
@@ -3654,6 +3675,13 @@ definitions:
36543675
anyOf:
36553676
- "$ref": "#/definitions/HttpRequester"
36563677
- "$ref": "#/definitions/CustomRequester"
3678+
- type: object
3679+
properties:
3680+
$ref:
3681+
type: string
3682+
pattern: "^#/definitions/"
3683+
required: ["$ref"]
3684+
additionalProperties: true
36573685
decoder:
36583686
title: HTTP Response Format
36593687
description: Component decoding the response so records can be extracted.
@@ -4202,6 +4230,13 @@ definitions:
42024230
- "$ref": "#/definitions/SimpleRetriever"
42034231
- "$ref": "#/definitions/AsyncRetriever"
42044232
- "$ref": "#/definitions/CustomRetriever"
4233+
- type: object
4234+
properties:
4235+
$ref:
4236+
type: string
4237+
pattern: "^#/definitions/"
4238+
required: ["$ref"]
4239+
additionalProperties: true
42054240
components_mapping:
42064241
type: array
42074242
items:
@@ -4336,6 +4371,13 @@ definitions:
43364371
anyOf:
43374372
- "$ref": "#/definitions/DeclarativeStream"
43384373
- "$ref": "#/definitions/StateDelegatingStream"
4374+
- type: object
4375+
properties:
4376+
$ref:
4377+
type: string
4378+
pattern: "^#/definitions/"
4379+
required: ["$ref"]
4380+
additionalProperties: true
43394381
components_resolver:
43404382
title: Components Resolver
43414383
description: Component resolve and populates stream templates with components values.

0 commit comments

Comments
 (0)