Failures · rule
failure.duplicate_context_field
Failure field is given twice.
Area 4, Failures; not declinable; the next step is usually the agent's.
type Lookup = Text {}type Missing = Failure { kind: FailureKind.not_found internal: { lookup: Lookup }}action find(lookup: Lookup) fails Missing -> Lookup { reject Missing { lookup: lookup lookup: lookup }}
error: `lookup` is given twice --> main.jadpo:13:9 |12 | lookup: lookup | ------ first given here13 | lookup: lookup | ^^^^^^ given again reason: Each field of `Missing` is given once, so the log and the client never have to guess which value counts. next: Remove one `lookup` (agent) rule: failure.duplicate_context_field help: https://jadpo.dev/docs/errors/failure.duplicate_context_fieldcheck failed: 1 error, 1 file
Markdown for agents: /docs/errors/failure.duplicate_context_field.md.Built from Jadpo main at a707efb.