Skip to content

Commit 1bf85a6

Browse files
committed
reorder partition router fields to be clearer, and remove default and add title
1 parent 4629a12 commit 1bf85a6

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

airbyte_cdk/sources/declarative/declarative_component_schema.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3145,28 +3145,19 @@ definitions:
31453145
type:
31463146
type: string
31473147
enum: [ParentStreamConfig]
3148-
lazy_read_pointer:
3149-
title: Lazy Read Pointer
3150-
description: If set, this will enable lazy reading, using the initial read of parent records to extract child records.
3151-
type: array
3152-
default: []
3153-
items:
3154-
type: string
3155-
interpolation_context:
3156-
- config
3148+
stream:
3149+
title: Parent Stream
3150+
description: Reference to the parent stream.
3151+
anyOf:
3152+
- "$ref": "#/definitions/DeclarativeStream"
3153+
- "$ref": "#/definitions/StateDelegatingStream"
31573154
parent_key:
31583155
title: Parent Key
31593156
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.
31603157
type: string
31613158
examples:
31623159
- "id"
31633160
- "{{ config['parent_record_id'] }}"
3164-
stream:
3165-
title: Parent Stream
3166-
description: Reference to the parent stream.
3167-
anyOf:
3168-
- "$ref": "#/definitions/DeclarativeStream"
3169-
- "$ref": "#/definitions/StateDelegatingStream"
31703161
partition_field:
31713162
title: Current Parent Key Value Identifier
31723163
description: While iterating over parent records during a sync, the parent_key value can be referenced by using this field.
@@ -3183,6 +3174,15 @@ definitions:
31833174
description: Indicates whether the parent stream should be read incrementally based on updates in the child stream.
31843175
type: boolean
31853176
default: false
3177+
lazy_read_pointer:
3178+
title: Lazy Read Pointer
3179+
description: If set, this will enable lazy reading, using the initial read of parent records to extract child records.
3180+
type: array
3181+
default: []
3182+
items:
3183+
type: string
3184+
interpolation_context:
3185+
- config
31863186
extra_fields:
31873187
title: Extra Fields
31883188
description: Array of field paths to include as additional fields in the stream slice. Each path is an array of strings representing keys to access fields in the respective parent record. Accessible via `stream_slice.extra_fields`. Missing fields are set to `None`.
@@ -3617,17 +3617,17 @@ definitions:
36173617
partition_router:
36183618
title: Partition Router
36193619
description: PartitionRouter component that describes how to partition the stream, enabling incremental syncs and checkpointing.
3620-
default: []
36213620
anyOf:
3622-
- "$ref": "#/definitions/ListPartitionRouter"
36233621
- "$ref": "#/definitions/SubstreamPartitionRouter"
3622+
- "$ref": "#/definitions/ListPartitionRouter"
36243623
- "$ref": "#/definitions/GroupingPartitionRouter"
36253624
- "$ref": "#/definitions/CustomPartitionRouter"
36263625
- type: array
3626+
title: Multiple Partition Routers
36273627
items:
36283628
anyOf:
3629-
- "$ref": "#/definitions/ListPartitionRouter"
36303629
- "$ref": "#/definitions/SubstreamPartitionRouter"
3630+
- "$ref": "#/definitions/ListPartitionRouter"
36313631
- "$ref": "#/definitions/GroupingPartitionRouter"
36323632
- "$ref": "#/definitions/CustomPartitionRouter"
36333633
$parameters:

0 commit comments

Comments
 (0)