Decodal/examples/advanced/README.md

484 B

Advanced Decodal example

This example exercises multiple current Decodal features together:

  • multi-file import
  • top-level recursive module scope
  • schema/value composition with &
  • deep patch with //
  • default fallback during materialization
  • constrained function parameters
  • lazy function arguments
  • match expressions
  • nested dot-path fields
  • arrays

Run it with:

cargo run -q -p decodal -- examples/advanced/main.dcdl

The entrypoint is main.dcdl.