Validator.php
Table of Contents
Classes
- Validator
- Checks a value's fields against a {@see Compiled} schema
(required/closed/forbidden/refine) -- shared by decode ({@see
self::materialize()}, which also produces a materialized result) and
encode-time validation ({@see self::validateForEncode()}/{@see
self::validateTreeForEncode()}). Both directions reuse the exact
same `resolveFields()`/`TypeExpr::matches()` field-checking; encode's
own values are wrapped in the same {@see Validated} marker decode
already uses, via `wrapAndCheck()`, so there's one type-checking
implementation, not two that could drift.