Skip to content

Schema: producer envelope (write profile)

Attribute rules for a CloudEvents 1.0 structured-JSON row a Spec Kitty producer writes (ADR 0001, write profile): upper-case ULID id, lamportclock and nodeid required. Non-normative until the cutover release. Cross-attribute rules that JSON Schema cannot state (missionid equals the id in source; subject is the aggregate only when source is project-scoped) are producer rules recorded in the registry.

CloudEvents profile (non-normative until 12.0.0) — the WRITE profile: attribute rules for CloudEvents rows a Spec Kitty producer writes. The normative envelope is the 3.0.0 event envelope; the read-side sibling is the read profile.

Generated from src/spec_kitty_events/producer_contract/envelope.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, write profileStructure of the JSON Schema CloudEvents envelope, write profile.$schemahttps://json-schema.org/draft/2020-12/schema$idurn:ai.spec-kitty:schema:envelope.write.v1titleCloudEvents envelope, write profiledescriptionAttribute rules for a CloudEvents 1.0 structured-JSON row a Spec Kitty producer writes (ADR 0001, write profile): upper-case ULID id, lamportclock and nodeid required. Non-normative until the cutover release. Cross-attribute rules that JSON Schema cannot state (missionid equals the id in source; subject is the aggregate only when source is project-scoped) are producer rules recorded in the registry.typeobjectproperties   required   propertyNames   additionalProperties☐ falsespecversion   id   source   type   subject   time   datacontenttype   dataschema   schemaversion   missionid   missionslug   actor   executionmode   lamportclock   nodeid   data   typestringconst1.0typestringpattern^[0-9A-HJKMNP-TV-Z]{26}(?![\s\S])descriptionUpper-case 26-character ULID.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])typestringminLength1typestringminLength1typestringminLength1typeintegerminimum0maximum2147483647typestringpattern^[0-9a-f]{12}(?![\s\S])typeobjectspecversionidsourcetypetimedatacontenttypedataschemaschemaversionlamportclocknodeiddatapattern^[a-z0-9]{1,20}(?![\s\S])
Structure of the JSON Schema CloudEvents envelope, write profile.

Properties

  • specversion (const: "1.0", required)
  • id (string, required): Upper-case 26-character ULID.
  • 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, required)
  • nodeid (string, required)
  • data (object, required)

Source

Schema file: schemas/envelope.schema.json