Output Formats
Each lexicon defines its own output format for serialized resources. The core evaluation pipeline produces a provider-agnostic resource graph; the lexicon’s serializer converts this into the target platform’s native format.
How Serialization Works
Section titled “How Serialization Works”- Evaluation — chant resolves all TypeScript expressions, imports, and references into concrete values
- Property mapping — Property names are converted from TypeScript conventions to the target format’s conventions
- Output generation — The lexicon serializer emits the final output
Common Behaviors
Section titled “Common Behaviors”All lexicon serializers share these behaviors:
- Deterministic output — Resources are serialized in a stable order, making output safe for version control and diff-based review
- Null handling — Properties set to
nullare omitted from output objects;nullvalues inside arrays are preserved - Reference resolution — Cross-resource references are converted to the target format’s reference mechanism
See your lexicon’s documentation for the specific output format.