Skip to content

Commit 5bee970

Browse files
committed
refactor RequestOption into a more consistent shape
1 parent d0b175d commit 5bee970

File tree

1 file changed

+60
-1
lines changed

1 file changed

+60
-1
lines changed

airbyte_cdk/sources/declarative/declarative_component_schema.yaml

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1722,12 +1722,27 @@ definitions:
17221722
- "$ref": "#/definitions/CustomPaginationStrategy"
17231723
page_size_option:
17241724
title: Inject Page Size Into Outgoing HTTP Request
1725+
deprecated: true
17251726
"$ref": "#/definitions/RequestOption"
1727+
page_size_injection:
1728+
title: Inject Page Size Into Outgoing Request
1729+
anyOf:
1730+
- "$ref": "#/definitions/RequestParameterInjection"
1731+
- "$ref": "#/definitions/RequestHeaderInjection"
1732+
- "$ref": "#/definitions/RequestBodyInjection"
17261733
page_token_option:
17271734
title: Inject Page Token Into Outgoing HTTP Request
1735+
deprecated: true
17281736
anyOf:
17291737
- "$ref": "#/definitions/RequestOption"
17301738
- "$ref": "#/definitions/RequestPath"
1739+
page_token_injection:
1740+
title: Inject Page Token Into Outgoing Request
1741+
anyOf:
1742+
- "$ref": "#/definitions/RequestParameterInjection"
1743+
- "$ref": "#/definitions/RequestHeaderInjection"
1744+
- "$ref": "#/definitions/RequestBodyInjection"
1745+
- "$ref": "#/definitions/RequestPath"
17311746
$parameters:
17321747
type: object
17331748
additionalProperties: true
@@ -3370,7 +3385,7 @@ definitions:
33703385
- ["tags"]
33713386
- [["content", "html"], ["content", "plain_text"]]
33723387
RequestPath:
3373-
title: Request Path
3388+
title: Request Path Injection
33743389
description: Specifies where in the request path a component's value should be inserted.
33753390
type: object
33763391
required:
@@ -3423,6 +3438,50 @@ definitions:
34233438
- header
34243439
- body_data
34253440
- body_json
3441+
RequestParameterInjection:
3442+
title: Request Parameter Injection
3443+
description: Injects a value into the request parameters.
3444+
type: object
3445+
required:
3446+
- type
3447+
- parameter_name
3448+
properties:
3449+
type:
3450+
type: string
3451+
enum: [RequestParameterInjection]
3452+
parameter_name:
3453+
type: string
3454+
description: The name of the parameter to inject the value into.
3455+
RequestHeaderInjection:
3456+
title: Request Header Injection
3457+
description: Injects a value into the request headers.
3458+
type: object
3459+
required:
3460+
- type
3461+
- header_name
3462+
properties:
3463+
type:
3464+
type: string
3465+
enum: [RequestHeaderInjection]
3466+
header_name:
3467+
type: string
3468+
description: The name of the header to inject the value into.
3469+
RequestBodyInjection:
3470+
title: Request Body Injection
3471+
description: Injects a value into the request body.
3472+
type: object
3473+
required:
3474+
- type
3475+
- field_path
3476+
properties:
3477+
type:
3478+
type: string
3479+
enum: [RequestBodyInjection]
3480+
field_path:
3481+
description: The path into the request body to inject the value.
3482+
type: array
3483+
items:
3484+
type: string
34263485
Schemas:
34273486
title: Schemas
34283487
description: The stream schemas representing the shape of the data emitted by the stream.

0 commit comments

Comments
 (0)