Skip to main content

Module value

Module value 

Source
Expand description

Structural validation that a SchemaValue matches a given SchemaType inside a SchemaGraph.

Structs§

PreparedValueValidator
Immutable validation preparation bound to one borrowed graph and root type. Each validation uses fresh error and path state; no invocation state is cached.
ValuePath
Path through a SchemaValue tree to a specific failing node.

Enums§

ResultSide
ValueError
All errors raised by validate_value.
ValuePathSegment
A path segment inside a SchemaValue tree.

Functions§

validate_record_fields
Validate the field values of a record against a set of named field types defined in graph, without materialising a temporary record SchemaType.
validate_value
Validate that value structurally conforms to ty (in the context of graph).