Skip to content

Schemas and sample data

A report schema is a portable JSON Schema attached to the document. It helps authors discover available fields and lets the engine validate input data. Sample data is a separate optional attachment, not part of the schema or a source of executable expressions.

In Settings, import schema JSON and paste/import sample JSON, or generate data from a usable schema. Generated data is a candidate to review. Inferred schemas describe observed values and cannot infer every business constraint from an example.

Sample data remains in memory unless you explicitly choose to save it in the document. When changing a schema, validate retained data or replace/remove it. A malformed or duplicate attachment requires attention rather than silently choosing one.

Saved templates retain explicitly attached samples. Filled Word and Excel outputs omit the sample-data attachment but still contain the visible values rendered into the report. Schema metadata remains unless explicitly removed through library APIs; it can reveal field names and internal structure.

Use fictional examples when distributing templates broadly. See the sample-data library guide for attachment APIs and limits.