Add advanced Decodal example
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# 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:
|
||||
|
||||
```sh
|
||||
cargo run -q -p decodal -- examples/advanced/main.dcdl
|
||||
```
|
||||
|
||||
The entrypoint is `main.dcdl`.
|
||||
Reference in New Issue
Block a user