Pydantic · Class
ValidationInfo
ValidationInfo gives Pydantic validators extra information about the current validation. Use it to read earlier field values, access context, inspect the validation mode, or identify the current field.
Last updated
Syntax
def validator(value, info: ValidationInfo) -> value_type: ...In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
field_validatormodel_validatorValidationInfomodel_validateContextVar