Learn

Minimal End-to-End Example

A compact Cuddler example that shows the full path from schema-aware input to a rendered report.

Minimal example

The smallest complete Cuddler path

This is the shortest workflow that still demonstrates the model end to end.

1Known schema family

Start with a schema identity the document is supposed to satisfy.

2Validated inputs

Keep the data JSON and template JSON aligned with that family.

3Controlled render

Let the renderer work only after both validations pass.

4Predictable result

The output stays reviewable because the contracts agreed before render time.

If the model stops making sense at this scale, it will be harder to maintain when the schema grows.

This is the smallest useful mental model for Cuddler: validated input goes in, a matching template renders it, and the output stays tied to the schema family that produced it.

What this example demonstrates

  • The schema is known before render time.
  • The template expects the same structure the schema validates.
  • The rendered result is predictable because both sides agree on the contract.

Why it is useful

The value of the example is its simplicity. If a workflow cannot stay understandable at this scale, it will be difficult to maintain when the schema grows.