Create a model field
Arguments
- fn
A type check function.
- default
A default value for the field.
- optional
Whether the field is optional.
- alias
alias that can be used in
model_dump()
- error_msg
A custom error message.
- ...
not used at the moment
Create a model field
A type check function.
A default value for the field.
Whether the field is optional.
alias that can be used in model_dump()
A custom error message.
not used at the moment