Skip to content

Commit ba231d7

Browse files
committed
Correct fields in declarative_component_schema
1 parent 5c32297 commit ba231d7

File tree

1 file changed

+36
-17
lines changed

1 file changed

+36
-17
lines changed

airbyte_cdk/sources/declarative/declarative_component_schema.yaml

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,9 @@ definitions:
440440
description: Backoff time in seconds.
441441
anyOf:
442442
- type: number
443+
title: Number of seconds
443444
- type: string
445+
title: Interpolated Value
444446
interpolation_context:
445447
- config
446448
examples:
@@ -1057,15 +1059,18 @@ definitions:
10571059
type: string
10581060
enum: [JwtAuthenticator]
10591061
secret_key:
1062+
title: Secret Key
10601063
type: string
10611064
description: Secret used to sign the JSON web token.
10621065
examples:
10631066
- "{{ config['secret_key'] }}"
10641067
base64_encode_secret_key:
1068+
title: Base64-encode Secret Key
10651069
type: boolean
10661070
description: When set to true, the secret key will be base64 encoded prior to being encoded as part of the JWT. Only set to "true" when required by the API.
10671071
default: False
10681072
algorithm:
1073+
title: Algorithm
10691074
type: string
10701075
description: Algorithm used to sign the JSON web token.
10711076
enum:
@@ -1673,13 +1678,15 @@ definitions:
16731678
title: Pagination Strategy
16741679
description: Strategy defining how records are paginated.
16751680
anyOf:
1681+
- "$ref": "#/definitions/PageIncrement"
1682+
- "$ref": "#/definitions/OffsetIncrement"
16761683
- "$ref": "#/definitions/CursorPagination"
16771684
- "$ref": "#/definitions/CustomPaginationStrategy"
1678-
- "$ref": "#/definitions/OffsetIncrement"
1679-
- "$ref": "#/definitions/PageIncrement"
16801685
page_size_option:
1686+
title: Inject Page Size Into Outgoing HTTP Request
16811687
"$ref": "#/definitions/RequestOption"
16821688
page_token_option:
1689+
title: Inject Page Token Into Outgoing HTTP Request
16831690
anyOf:
16841691
- "$ref": "#/definitions/RequestOption"
16851692
- "$ref": "#/definitions/RequestPath"
@@ -1777,6 +1784,8 @@ definitions:
17771784
type: object
17781785
additionalProperties: true
17791786
SessionTokenAuthenticator:
1787+
title: Session Token Authenticator
1788+
description: Authenticator for requests using the session token as an API key that's injected into the request.
17801789
type: object
17811790
required:
17821791
- type
@@ -1907,23 +1916,23 @@ definitions:
19071916
title: Authenticator
19081917
description: Authentication method to use for requests sent to the API.
19091918
anyOf:
1919+
- "$ref": "#/definitions/NoAuth"
19101920
- "$ref": "#/definitions/ApiKeyAuthenticator"
19111921
- "$ref": "#/definitions/BasicHttpAuthenticator"
19121922
- "$ref": "#/definitions/BearerAuthenticator"
1913-
- "$ref": "#/definitions/CustomAuthenticator"
19141923
- "$ref": "#/definitions/OAuthAuthenticator"
19151924
- "$ref": "#/definitions/JwtAuthenticator"
1916-
- "$ref": "#/definitions/NoAuth"
19171925
- "$ref": "#/definitions/SessionTokenAuthenticator"
1918-
- "$ref": "#/definitions/LegacySessionTokenAuthenticator"
19191926
- "$ref": "#/definitions/SelectiveAuthenticator"
1927+
- "$ref": "#/definitions/CustomAuthenticator"
1928+
- "$ref": "#/definitions/LegacySessionTokenAuthenticator"
19201929
error_handler:
19211930
title: Error Handler
19221931
description: Error handler component that defines how to handle errors.
19231932
anyOf:
19241933
- "$ref": "#/definitions/DefaultErrorHandler"
1925-
- "$ref": "#/definitions/CustomErrorHandler"
19261934
- "$ref": "#/definitions/CompositeErrorHandler"
1935+
- "$ref": "#/definitions/CustomErrorHandler"
19271936
http_method:
19281937
title: HTTP Method
19291938
description: The HTTP method used to fetch data from the source (can be GET or POST).
@@ -1993,11 +2002,13 @@ definitions:
19932002
description: Specifies the query parameters that should be set on an outgoing HTTP request given the inputs.
19942003
anyOf:
19952004
- type: string
2005+
title: Interpolated Value
19962006
- type: object
2007+
title: Key/Value Pairs
19972008
additionalProperties:
19982009
anyOf:
19992010
- type: string
2000-
- $ref": "#/definitions/QueryProperties"
2011+
- $ref: "#/definitions/QueryProperties"
20012012
interpolation_context:
20022013
- next_page_token
20032014
- stream_interval
@@ -2877,7 +2888,9 @@ definitions:
28772888
description: The number of records to include in each pages.
28782889
anyOf:
28792890
- type: integer
2891+
title: Number of Records
28802892
- type: string
2893+
title: Interpolated Value
28812894
interpolation_context:
28822895
- config
28832896
- response
@@ -2909,7 +2922,9 @@ definitions:
29092922
- config
29102923
anyOf:
29112924
- type: integer
2925+
title: Number of Records
29122926
- type: string
2927+
title: Interpolated Value
29132928
examples:
29142929
- 100
29152930
- "100"
@@ -3116,6 +3131,7 @@ definitions:
31163131
type: string
31173132
enum: [RecordFilter]
31183133
condition:
3134+
title: Condition
31193135
description: The predicate to filter a record. Records will be removed if evaluated to False.
31203136
type: string
31213137
default: ""
@@ -3145,25 +3161,24 @@ definitions:
31453161
enum: [RecordSelector]
31463162
extractor:
31473163
anyOf:
3148-
- "$ref": "#/definitions/CustomRecordExtractor"
31493164
- "$ref": "#/definitions/DpathExtractor"
3165+
- "$ref": "#/definitions/CustomRecordExtractor"
31503166
record_filter:
31513167
title: Record Filter
31523168
description: Responsible for filtering records to be emitted by the Source.
31533169
anyOf:
3154-
- "$ref": "#/definitions/CustomRecordFilter"
31553170
- "$ref": "#/definitions/RecordFilter"
3171+
- "$ref": "#/definitions/CustomRecordFilter"
31563172
schema_normalization:
31573173
title: Schema Normalization
31583174
description: Responsible for normalization according to the schema.
31593175
anyOf:
31603176
- "$ref": "#/definitions/SchemaNormalization"
31613177
- "$ref": "#/definitions/CustomSchemaNormalization"
3162-
default: None
31633178
transform_before_filtering:
3179+
title: Transform Before Filtering
31643180
description: If true, transformation will be applied before record filtering.
31653181
type: boolean
3166-
default: false
31673182
$parameters:
31683183
type: object
31693184
additionalProperties: true
@@ -3172,11 +3187,11 @@ definitions:
31723187
description: Responsible for normalization according to the schema.
31733188
type: string
31743189
enum:
3175-
- None
31763190
- Default
3177-
examples:
31783191
- None
3192+
examples:
31793193
- Default
3194+
- None
31803195
RemoveFields:
31813196
title: Remove Fields
31823197
description: A transformation which removes fields from a record. The fields removed are designated using FieldPointers. During transformation, if a field or any of its parents does not exist in the record, no error is thrown.
@@ -3274,6 +3289,7 @@ definitions:
32743289
title: Session Token Authenticator
32753290
description: Deprecated - use SessionTokenAuthenticator instead. Authenticator for requests authenticated using session tokens. A session token is a random value generated by a server to identify a specific user for the duration of one interaction session.
32763291
type: object
3292+
deprecated: true
32773293
required:
32783294
- type
32793295
- header
@@ -3332,6 +3348,7 @@ definitions:
33323348
type: object
33333349
additionalProperties: true
33343350
StateDelegatingStream:
3351+
title: State Delegating Stream
33353352
description: (This component is experimental. Use at your own risk.) Orchestrate the retriever's usage based on the state value.
33363353
type: object
33373354
required:
@@ -3362,6 +3379,7 @@ definitions:
33623379
type: object
33633380
additionalProperties: true
33643381
SimpleRetriever:
3382+
title: Synchronous Retriever
33653383
description: Retrieves records by synchronously sending requests to fetch records. The retriever acts as an orchestrator between the requester, the record selector, the paginator, and the partition router.
33663384
type: object
33673385
required:
@@ -3378,8 +3396,8 @@ definitions:
33783396
requester:
33793397
description: Requester component that describes how to prepare HTTP requests to send to the source API.
33803398
anyOf:
3381-
- "$ref": "#/definitions/CustomRequester"
33823399
- "$ref": "#/definitions/HttpRequester"
3400+
- "$ref": "#/definitions/CustomRequester"
33833401
paginator:
33843402
description: Paginator component that describes how to navigate through the API's pages.
33853403
anyOf:
@@ -3482,6 +3500,7 @@ definitions:
34823500
items:
34833501
type: string
34843502
AsyncRetriever:
3503+
title: Asynchronous Retriever
34853504
description: "Retrieves records by Asynchronously sending requests to fetch records. The retriever acts as an orchestrator between the requester, the record selector, the paginator, and the partition router."
34863505
type: object
34873506
required:
@@ -3507,18 +3526,18 @@ definitions:
35073526
status_extractor:
35083527
description: Responsible for fetching the actual status of the async job.
35093528
anyOf:
3510-
- "$ref": "#/definitions/CustomRecordExtractor"
35113529
- "$ref": "#/definitions/DpathExtractor"
3530+
- "$ref": "#/definitions/CustomRecordExtractor"
35123531
download_target_extractor:
35133532
description: Responsible for fetching the final result `urls` provided by the completed / finished / ready async job.
35143533
anyOf:
3515-
- "$ref": "#/definitions/CustomRecordExtractor"
35163534
- "$ref": "#/definitions/DpathExtractor"
3535+
- "$ref": "#/definitions/CustomRecordExtractor"
35173536
download_extractor:
35183537
description: Responsible for fetching the records from provided urls.
35193538
anyOf:
3520-
- "$ref": "#/definitions/CustomRecordExtractor"
35213539
- "$ref": "#/definitions/DpathExtractor"
3540+
- "$ref": "#/definitions/CustomRecordExtractor"
35223541
- "$ref": "#/definitions/ResponseToFileExtractor"
35233542
creation_requester:
35243543
description: Requester component that describes how to prepare HTTP requests to send to the source API to create the async server-side job.

0 commit comments

Comments
 (0)