field_validator(mode="before") validators have no guarantees for type safety of the value (v) argument. This PR adds some rudimentary type checking to any validators that use this v argument.
Some model_validator and field_validator(mode="before") validators have also been changed or removed.
Each change is described in inline GitHub comments.
field_validator(mode="before")
validators have no guarantees for type safety of the value (v
) argument. This PR adds some rudimentary type checking to any validators that use thisv
argument.Some
model_validator
andfield_validator(mode="before")
validators have also been changed or removed.Each change is described in inline GitHub comments.