Skip to main content

parse_value

Function parse_value 

Source
pub fn parse_value<T>(
    input: Value,
    ctx: ValidationContext,
) -> ValidationResult<T>
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.