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.
- You'll be making frequent use of the provided base schemas.
- You need to know how to define structure using child properties.
- The value processor pipelines are the ticket to schema customization.
- Dive into advanced topics like unions, selectors, and commands.
If you prefer to understand things from first principles,
- Read about the architecture and the abstract "mental model"
- Debate the rationale of Yet Another Schema.
- Be amused by the schema compilation process.
The Configurator uses the schema for two purposes:
- process maps of property path assignments (dotted hierarchical property names with values) produced by configuration sources.
- validate a candidate configuration object
Each concept is described separately.
For the following sections, we'll assume we've done this:
import { Schema } from '@versionzero/configurator';
const schema = new Schema('object');