Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 5 Nov 2026. What's built · Install 0.3.0
jadpo
ReferenceErrors

ErrorsEntities, stores and migrations · rule

data.cleared_required_reference

A reference that can never be none is cleared on delete.

Area 5, Entities, stores and migrations; not declinable; the next step is usually the agent's.

example
entity Project {    id: Uuid}entity Todo {    id: Uuid    project_id: Project.id {        on_delete: OnDelete.cleared    }}
jadpo checkcheck failed: 1 error, 1 file

error Todo.project_id can't be cleared

--> main.jadpo:8:20

  |8 |         on_delete: OnDelete.cleared  |                    ^^^^^^^^^^^^^^^^ the field can't be `none`
reason
OnDelete.cleared sets the reference to none when the Project is deleted, which only an optional reference (Project.id?) can hold.
next
Make it Project.id?, or use OnDelete.restricted or OnDelete.cascade (agent)
rule
data.cleared_required_reference
help
https://jadpo.dev/docs/errors/data.cleared_required_reference

Markdown for agents: /docs/errors/data.cleared_required_reference.md.Built from Jadpo main at aee2e8f.