pub fn parse_value<T>(
input: Value,
ctx: ValidationContext,
) -> ValidationResult<T>where
T: DeserializeOwned + Validate,Expand description
Validate raw input and build a T (Pydantic model_validate).
Every problem found while preparing the input is reported at once. If
preparation succeeds but deserialization still fails (a type whose
prepare is less strict than its Deserialize), that single error is
reported with its path.
ยงErrors
Returns all collected ValidationErrors.