Encode-time schema validation: checks value — ordinary JS data
you're about to encode — against a named, compiled schema before
encoding produces any output. The mirror image of validate, for
data on its way out rather than in. Returns the checked value
(possibly coerced — see schema/validator.cjs's own doc), stripped
of internal bookkeeping.
Encode-time schema validation: checks
value— ordinary JS data you're about to encode — against a named, compiled schema before encoding produces any output. The mirror image ofvalidate, for data on its way out rather than in. Returns the checked value (possibly coerced — seeschema/validator.cjs's own doc), stripped of internal bookkeeping.