Skip to content

Schema: producer envelope (read profile)

Attribute rules for a CloudEvents row as a reader may meet it, including the upcast form of a legacy row (ADR 0001, read profile): the id may be a normalized legacy UUID, lamportclock and nodeid are optional because legacy diary and CLI rows carry none, and the 3.0.0 transport envelope's remaining fields are optional extensions. Non-normative until the cutover release.

CloudEvents profile (non-normative until 12.0.0) — the READ profile: attribute rules for CloudEvents rows as a reader meets them, including upcast legacy rows. The normative envelope is the 3.0.0 event envelope; the write-side sibling is the write profile.

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

Family

Listed on the Producer row schemas and the total order hub.

Diagram

CloudEvents envelope, read profileStructure of the JSON Schema CloudEvents envelope, read profile.$schemahttps://json-schema.org/draft/2020-12/schema$idurn:ai.spec-kitty:schema:envelope.read.v1titleCloudEvents envelope, read profiledescriptionAttribute rules for a CloudEvents row as a reader may meet it, including the upcast form of a legacy row (ADR 0001, read profile): the id may be a normalized legacy UUID, lamportclock and nodeid are optional because legacy diary and CLI rows carry none, and the 3.0.0 transport envelope's remaining fields are optional extensions. Non-normative until the cutover release.typeobjectproperties   required   propertyNames   additionalProperties☐ falsespecversion   id   source   type   subject   time   datacontenttype   dataschema   schemaversion   missionid   missionslug   actor   executionmode   lamportclock   nodeid   buildid   causationid   correlationid   projectuuid   projectslug   datatier   data   typestringconst1.0typestringpattern^([0-9A-HJKMNP-TV-Z]{26}|[0-9a-f]{8}-[0-9a-f]{4} -[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?![\s\S])descriptionUpper-case ULID, or a legacy UUID normalized to lower-case hyphenated form.typestringpattern^/spec-kitty/(missions|projects)/[^/\s]+(?![\s\S ])typestringpattern^ai\.spec-kitty\.[a-z0-9]+(\.[a-z0-9]+)*\.v[0-9] +(?![\s\S])typestringminLength1typestringformatdate-timepattern^[0-9]{4}-[0-9]{2}-[0-9]{2}[Tt][0-9]{2}:[0-9]{2} :[0-9]{2}(\.[0-9]{1,9})?([Zz]|[+-][0-9]{2}:[0-9] {2})(?![\s\S])typestringconstapplication/jsontypestringformaturipattern^urn:ai\.spec-kitty:schema:[a-z0-9]+(\.[a-z0-9]+ )*\.v[0-9]+(?![\s\S])typestringconst4.0.0typestringpattern^[0-9A-HJKMNP-TV-Z]{26}(?![\s\S])typestringminLength1typestringminLength1typestringminLength1typeintegerminimum0maximum2147483647typestringminLength1typestringminLength1typestringpattern^([0-9A-HJKMNP-TV-Z]{26}|[0-9a-f]{8}-[0-9a-f]{4} -[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?![\s\S])descriptionUpper-case ULID, or a legacy UUID normalized to lower-case hyphenated form.typestringpattern^([0-9A-HJKMNP-TV-Z]{26}|[0-9a-f]{8}-[0-9a-f]{4} -[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?![\s\S])descriptionUpper-case ULID, or a legacy UUID normalized to lower-case hyphenated form.typestringminLength1typestringminLength1typeintegerminimum0maximum4typeobjectspecversionidsourcetypetimedatacontenttypedataschemaschemaversiondatapattern^[a-z0-9]{1,20}(?![\s\S])
Structure of the JSON Schema CloudEvents envelope, read profile.

Properties

  • specversion (const: "1.0", required)
  • id (string, required): Upper-case ULID, or a legacy UUID normalized to lower-case hyphenated form.
  • source (string, required)
  • type (string, required)
  • subject (string)
  • time (string, required)
  • datacontenttype (const: "application/json", required)
  • dataschema (string, required)
  • schemaversion (const: "4.0.0", required)
  • missionid (string)
  • missionslug (string)
  • actor (string)
  • executionmode (string)
  • lamportclock (integer)
  • nodeid (string)
  • buildid (string)
  • causationid (string): Upper-case ULID, or a legacy UUID normalized to lower-case hyphenated form.
  • correlationid (string): Upper-case ULID, or a legacy UUID normalized to lower-case hyphenated form.
  • projectuuid (string)
  • projectslug (string)
  • datatier (integer)
  • data (object, required)

Source

Schema file: schemas/envelope.read.schema.json