Skip to content

Commit c700900

Browse files
authored
fix: add array type to field_pointers items (#658)
1 parent b711cd6 commit c700900

File tree

2 files changed

+28
-18
lines changed

2 files changed

+28
-18
lines changed

airbyte_cdk/sources/declarative/declarative_component_schema.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3398,6 +3398,7 @@ definitions:
33983398
description: Array of paths defining the field to remove. Each item is an array whose field describe the path of a field to remove.
33993399
type: array
34003400
items:
3401+
type: array
34013402
items:
34023403
type: string
34033404
examples:
@@ -4546,6 +4547,7 @@ definitions:
45464547
description: A list of field pointers to be removed from the config.
45474548
type: array
45484549
items:
4550+
type: array
45494551
items:
45504552
type: string
45514553
examples:

airbyte_cdk/sources/declarative/models/declarative_component_schema.py

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Copyright (c) 2025 Airbyte, Inc., all rights reserved.
2-
31
# generated by datamodel-codegen:
42
# filename: declarative_component_schema.yaml
53

@@ -160,20 +158,6 @@ class Config:
160158
parameters: Optional[Dict[str, Any]] = Field(None, alias="$parameters")
161159

162160

163-
class CustomConfigTransformation(BaseModel):
164-
class Config:
165-
extra = Extra.allow
166-
167-
type: Literal["CustomConfigTransformation"]
168-
class_name: str = Field(
169-
...,
170-
description="Fully-qualified name of the class that will be implementing the custom config transformation. The format is `source_<name>.<package>.<class_name>`.",
171-
examples=["source_declarative_manifest.components.MyCustomConfigTransformation"],
172-
title="Class Name",
173-
)
174-
parameters: Optional[Dict[str, Any]] = Field(None, alias="$parameters")
175-
176-
177161
class CustomErrorHandler(BaseModel):
178162
class Config:
179163
extra = Extra.allow
@@ -1657,6 +1641,20 @@ class ConfigRemoveFields(BaseModel):
16571641
)
16581642

16591643

1644+
class CustomConfigTransformation(BaseModel):
1645+
type: Literal["CustomConfigTransformation"]
1646+
class_name: str = Field(
1647+
...,
1648+
description="Fully-qualified name of the class that will be implementing the custom config transformation. The format is `source_<name>.<package>.<class_name>`.",
1649+
examples=["source_declarative_manifest.components.MyCustomConfigTransformation"],
1650+
)
1651+
parameters: Optional[Dict[str, Any]] = Field(
1652+
None,
1653+
alias="$parameters",
1654+
description="Additional parameters to be passed to the custom config transformation.",
1655+
)
1656+
1657+
16601658
class AddedFieldDefinition(BaseModel):
16611659
type: Literal["AddedFieldDefinition"]
16621660
path: List[str] = Field(
@@ -2164,7 +2162,12 @@ class ConfigMigration(BaseModel):
21642162
None, description="The description/purpose of the config migration."
21652163
)
21662164
transformations: List[
2167-
Union[ConfigRemapField, ConfigAddFields, ConfigRemoveFields, CustomConfigTransformation]
2165+
Union[
2166+
ConfigRemapField,
2167+
ConfigAddFields,
2168+
ConfigRemoveFields,
2169+
CustomConfigTransformation,
2170+
]
21682171
] = Field(
21692172
...,
21702173
description="The list of transformations that will attempt to be applied on an incoming unmigrated config. The transformations will be applied in the order they are defined.",
@@ -2184,7 +2187,12 @@ class Config:
21842187
)
21852188
transformations: Optional[
21862189
List[
2187-
Union[ConfigRemapField, ConfigAddFields, ConfigRemoveFields, CustomConfigTransformation]
2190+
Union[
2191+
ConfigRemapField,
2192+
ConfigAddFields,
2193+
ConfigRemoveFields,
2194+
CustomConfigTransformation,
2195+
]
21882196
]
21892197
] = Field(
21902198
[],

0 commit comments

Comments
 (0)