Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions airbyte_cdk/sources/declarative/declarative_component_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1339,8 +1339,8 @@ definitions:
examples:
- "%Y-%m-%d %H:%M:%S.%f+00:00"
refresh_token_updater:
title: Token Updater
description: When the token updater is defined, new refresh tokens, access tokens and the access token expiry date are written back from the authentication response to the config object. This is important if the refresh token can only used once.
title: Refresh Token Updater
description: When the refresh token updater is defined, new refresh tokens, access tokens and the access token expiry date are written back from the authentication response to the config object. This is important if the refresh token can only used once.
properties:
refresh_token_name:
title: Refresh Token Property Name
Expand Down Expand Up @@ -3424,6 +3424,19 @@ definitions:
type:
type: string
enum: [RequestOption]
inject_into:
title: Inject Into
description: Configures where the descriptor should be set on the HTTP requests. Note that request parameters that are already encoded in the URL path will not be duplicated.
enum:
- request_parameter
- header
- body_data
- body_json
examples:
- request_parameter
- header
- body_data
- body_json
field_name:
title: Field Name
description: Configures which key should be used in the location that the descriptor is being injected into. We hope to eventually deprecate this field in favor of `field_path` for all request_options, but must currently maintain it for backwards compatibility in the Builder.
Expand All @@ -3444,19 +3457,6 @@ definitions:
interpolation_context:
- config
- parameters
inject_into:
title: Inject Into
description: Configures where the descriptor should be set on the HTTP requests. Note that request parameters that are already encoded in the URL path will not be duplicated.
enum:
- request_parameter
- header
- body_data
- body_json
examples:
- request_parameter
- header
- body_data
- body_json
Schemas:
title: Schemas
description: The stream schemas representing the shape of the data emitted by the stream.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,8 @@ class OAuthAuthenticator(BaseModel):
)
refresh_token_updater: Optional[RefreshTokenUpdater] = Field(
None,
description="When the token updater is defined, new refresh tokens, access tokens and the access token expiry date are written back from the authentication response to the config object. This is important if the refresh token can only used once.",
title="Token Updater",
description="When the refresh token updater is defined, new refresh tokens, access tokens and the access token expiry date are written back from the authentication response to the config object. This is important if the refresh token can only used once.",
title="Refresh Token Updater",
)
profile_assertion: Optional[JwtAuthenticator] = Field(
None,
Expand Down Expand Up @@ -1307,6 +1307,12 @@ class InjectInto(Enum):

class RequestOption(BaseModel):
type: Literal["RequestOption"]
inject_into: InjectInto = Field(
...,
description="Configures where the descriptor should be set on the HTTP requests. Note that request parameters that are already encoded in the URL path will not be duplicated.",
examples=["request_parameter", "header", "body_data", "body_json"],
title="Inject Into",
)
field_name: Optional[str] = Field(
None,
description="Configures which key should be used in the location that the descriptor is being injected into. We hope to eventually deprecate this field in favor of `field_path` for all request_options, but must currently maintain it for backwards compatibility in the Builder.",
Expand All @@ -1319,12 +1325,6 @@ class RequestOption(BaseModel):
examples=[["data", "viewer", "id"]],
title="Field Path",
)
inject_into: InjectInto = Field(
...,
description="Configures where the descriptor should be set on the HTTP requests. Note that request parameters that are already encoded in the URL path will not be duplicated.",
examples=["request_parameter", "header", "body_data", "body_json"],
title="Inject Into",
)


class Schemas(BaseModel):
Expand Down
Loading