Skip to main content

Schema

The Schema Guide is sequenced by default for "practical use": basic information that will let you be productive quickly. You'll have a solid grasp of what's possible just reading the first few guides and poking at the examples.

If you prefer to understand things from first principles,

Also check out key working examples in the repo:

  • basics.js - start here
  • unions.js - nuances of union discrimination
  • conditionals.js - petting zoo of various conditionals like $if vs $gate vs $when
  • opaque.js and implicit.js - inhibiting deep inspection of output data after transformation
  • reference-lookup.js - when data within the output has correlated rules
  • recursive-dynamic.js - demonstrates both dynamic input data and recursive schemas
  • metadata.js - leveraging metadata from within and without the schema