Skip to main content

Embed schema reference (v1)

The chart payload is validated with Zod in lib/embed/chart-input.schema.ts.

Top-level shape

Caps

  • Up to 500 total nodes across people, trusts, and entities
  • Up to 1000 relationships

URL fields

The schema rejects URL-shaped leaf fields (href, src, avatarUrl, etc.). The CSP img-src 'self' data: is the real control; the schema guard is defense in depth.

Referential integrity

Relationship endpoints, trustee links, beneficiary links, and ownership owner IDs must resolve to IDs present in the payload.