Readers

Status: implemented

A schema is read against a value by one of three readers, which accept exactly the same DataJS values (outside DataJS the data form is more permissive; see data-validate-admits-non-djs-values):

ReaderA success carries
parse(s)(value)a value built from what s declares
validate(s)(value)the value it was given
validate(toData(s))(value), the data form'sthe value it was given

Pages

Reference

Where it is implemented

parse, validate, the data form's validate in data, and the kernel they share in common.

Emergent Testing

Idle. Press Run to start the suite.

  • ./errors/proof.f.mjs
  • ./parse-and-validate/proof.f.mjs
  • ./proof.f.mjs