Skip to content

Schema: typed_rejection

A typed rejection returned by a consumer that could not accept a durable work observation. ``contract`` names the payload-ID lineage the consumer judged against (e.g. ``work.narrative.intent_declared.v1``).

A shared building block of the event model.

Generated from src/spec_kitty_events/schemas/typed_rejection.schema.json by scripts/schema_pages.py; never hand-edit (C-001).

Family

Listed on the Shared event-model types hub.

Diagram

TypedRejectionStructure of the JSON Schema TypedRejection.$defs   $idspec-kitty-events/typed_rejection$schemahttps://json-schema.org/draft/2020-12/schemaadditionalProperties☐ falsedescriptionA typed rejection returned by a consumer that could not accept a durable work observation. ``contract`` names the payload-ID lineage the consumer judged against (e.g. ``work.narrative.intent_declared.v1``).properties   required   titleTypedRejectiontypeobjectWorkRejectionReason   descriptionClosed vocabulary for typed rejections of durable work observations. Rejections are typed data, never dropped-on-the-floor and never a generic 400: the producer can distinguish "my contract version is too old" (renegotiate) from "this event ID already exists with different bytes" (investigate) from "I set a server-owned field" (fix my emitter).enum   titleWorkRejectionReasontypestringid_payload_conflictunsupported_contract_versionunknown_kindserver_owned_fieldforbidden_keyinvalid_payloadcontract   detail   event_id   reason   anyOf   default␀titleContract      maxLength128minLength1typestringtypenullmaxLength2000minLength1titleDetailtypestringanyOf   default␀titleEvent Id      maxLength36minLength26typestringtypenull$ref#/$defs/WorkRejectionReasonreasondetail
Structure of the JSON Schema TypedRejection.

Properties

  • contract (string | null)
  • detail (string, required)
  • event_id (string | null)
  • reason (enum: id_payload_conflict, unsupported_contract_version, unknown_kind, server_owned_field, forbidden_key, invalid_payload, required): Closed vocabulary for typed rejections of durable work observations. Rejections are typed data, never dropped-on-the-floor and never a generic 400: the producer can distinguish "my contract version is too old" (renegotiate) from "this event ID already exists with different bytes" (investigate) from "I set a server-owned field" (fix my emitter).

Source

Schema file: schemas/typed_rejection.schema.json