Skip to main content

Module validate

Module validate 

Source
Expand description

Schema constraint validation for generated message types.

serde enforces structure (required fields, types, enum values, unknown fields). The generated Validate impls enforce the remaining JSON-schema constraints: maxLength, minimum/maximum, minItems/maxItems and multipleOf.

Structs§

Path
A JSON path built on the stack; only rendered when an error occurs.
Violation

Enums§

ViolationKind

Traits§

Validate

Functions§

items
max_length
maximum
minimum
multiple_of