minos.common.model.fields
Classes
Represents a model field. |
|
alias of |
- class Field[source]
Bases:
object
Represents a model field.
- property parser: Optional[Callable[[Any], Any]]
Parser getter.
- property validator: Optional[Callable[[Any], Any]]
Parser getter.
- property value: Any
Value getter.
- property avro_schema: dict[str, Any]
Compute the avro schema of the field.
- Returns
A dictionary object.
- property avro_data: Any
Compute the avro data of the model.
- Returns
A dictionary object.