Skip to content

Commit df1be9f

Browse files
committed
Ignore extra options in engine plugin configs
Forbidding extra options in the engine plugin configs (executor, filter, and transformer) meant that trying to override the plugin type defined in a config file from a CLI argument would raise an "extra options forbidden" error by the pydantic validators because of the options for the not used plugin variant in the config. This change should support that use case. Note that the run Config and AppConfig still forbid extra options as a sanity check, and those don't have the same issue of wanting to frequently switch the plugin type.
1 parent 8abf756 commit df1be9f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

taps/executor/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ExecutorConfig(BaseModel, abc.ABC):
1313
name: str
1414

1515
model_config: ConfigDict = ConfigDict( # type: ignore[misc]
16-
extra='forbid',
16+
extra='ignore',
1717
validate_default=True,
1818
validate_return=True,
1919
)

taps/filter/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class FilterConfig(BaseModel, abc.ABC):
2121
name: str = Field(description='name of filter type')
2222

2323
model_config: ConfigDict = ConfigDict( # type: ignore[misc]
24-
extra='forbid',
24+
extra='ignore',
2525
validate_default=True,
2626
validate_return=True,
2727
)

taps/transformer/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class TransformerConfig(BaseModel, abc.ABC):
1616
name: str = Field(description='name of transformer type')
1717

1818
model_config: ConfigDict = ConfigDict( # type: ignore[misc]
19-
extra='forbid',
19+
extra='ignore',
2020
validate_default=True,
2121
validate_return=True,
2222
)

0 commit comments

Comments
 (0)