Schema Conditions (autotransform.step.condition.schema)
The implementation for the SchemaNameCondition.
- class autotransform.step.condition.schema.SchemaNameCondition(*, comparison: ComparisonType, value: str | List[str])
Bases:
ComparisonCondition[str]A condition which checks the name of the Schema that produced a change against the supplied name, using the supplied comparison.
- comparison
The type of comparison to perform.
- Type:
- value
The schema name(s) to compare against.
- Type:
Union[str, List[str]]
- name
The name of the Component.
- Type:
ClassVar[ConditionName]
- comparison: ComparisonType
- get_val_from_change(change: Change) str
Gets the Schema name from the Change.
- Parameters:
change (Change) – The Change the Condition is checking.
- Returns:
The name of the Schema that produced the change.
- Return type:
str
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name: ClassVar[ConditionName] = 'schema_name'
- value: str | List[str]