Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 30 Oct 2026. What's built · Install 0.1.0
jadpo
Reference: Reads and writes

Reads and writes · rule

data.patch_field_required

Patch input has a field that isn't optional.

Area 6, Reads and writes; not declinable; the next step is usually the agent's.

example
type ItemName = Text {    max_length: 80}entity Item {    id: Uuid    name: ItemName}type ItemChanges = Input {    pick: [Item.name]}action edit(item: Item, amendment: ItemChanges) -> Item {    return Item.update(item) {        patch: amendment    }}
text
error: `ItemChanges.name` isn't optional, so a patch can't leave it out --> main.jadpo:16:16   |16 |         patch: amendment   |                ^^^^^^^^^ `ItemChanges`  reason: A patch changes only the fields a request supplied, so each field of its input is optional: one left out keeps its value. A required `name` would have to be sent every time.  next: Make `name` optional in `ItemChanges` (`optional: true`, or `optional: all`), or set it with `set:` (agent)  rule: data.patch_field_required  help: https://jadpo.dev/docs/errors/data.patch_field_requiredcheck failed: 1 error, 1 file

Markdown for agents: /docs/errors/data.patch_field_required.md.Built from Jadpo main at a707efb.