Returning instance from @model_validate(mode="before")
raises model_type
validation error
#9336
Open
1 task done
Initial Checks
Description
Returning a model instance from a
@model_validate(mode="before")
decorated method raisesValidationError
.Example Code
As a work around, taking from #7292 (comment)
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: