Data Pipelines

Pipelines transform your input JSON before the template renders. Define a sequence of steps as JSON. The engine runs in preview and API generation.

Spec

Steps include compute and set. Each step writes results to target paths. See the full spec overview in Docs. For the repository design reference, check docs/data-pipeline.md.

Example


{
  "steps": [
    { "type": "compute", "expr": "sum($.items[*].price)", "to": "$.totals.subtotal" },
    { "type": "set", "value": 0.07, "to": "$.totals.taxRate" }
  ]
}
Related: Code Editor ยท API