buffalo_core.schema.SchemaCondition
- class buffalo_core.schema.SchemaCondition(path, operator, value=None, message=None)[source]
Bases:
objectStructured conditional UI rule attached to one schema field.
Notes
Conditions remain domain-light so downstream projects can interpret them for GUI visibility, editability, or other editor workflows.
Methods
Return the plain metadata mapping stored in dataclass fields.
Attributes
Path expression identifying the controlling schema value.
Predicate operator such as
equalsornon_empty.Optional comparison value for the condition.
Optional explanatory message for the condition.
- path: str
Path expression identifying the controlling schema value.
- operator: str
Predicate operator such as
equalsornon_empty.
- value: object | None
Optional comparison value for the condition.
- message: str | None
Optional explanatory message for the condition.