Skip to main contentModule validation
Source - ValidationDetail
- A single validation error with path, expected type, and actual value description.
- CompiledSchema
- Pre-compiled JTD schema for fast repeated validation.
- JtdType
- JTD primitive type identifiers.
- ValidationMode
- Controls when input validation runs.
- compile_schema
- Compile a JTD schema JSON value into a
CompiledSchema for fast validation. - should_validate
- Check whether validation should run for the given mode.
- validate_compiled
- Validate
data against a pre-compiled schema.
Returns Ok(()) if valid, or Err((summary, details)) on failure. - validate_input
- Validate
data against a JTD schema (compiles on each call).
Returns Ok(()) if valid, or Err((summary, details)) on failure.