Skip to content

Schema: artifact_reference

A reference to authenticated artifact content — long content is never inlined (LW-11): it is referenced by content hash, byte length, media type, and completeness. ``complete=False`` marks a partial capture (e.g. truncated log tail) so consumers never mistake a fragment for the whole.

A shared building block of the event model.

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

Family

Listed on the Shared event-model types hub.

Diagram

ArtifactReferenceStructure of the JSON Schema ArtifactReference.$idspec-kitty-events/artifact_reference$schemahttps://json-schema.org/draft/2020-12/schemaadditionalProperties☐ falsedescriptionA reference to authenticated artifact content — long content is never inlined (LW-11): it is referenced by content hash, byte length, media type, and completeness. ``complete=False`` marks a partial capture (e.g. truncated log tail) so consumers never mistake a fragment for the whole.properties   required   titleArtifactReferencetypeobjectartifact_id   byte_length   complete   content_hash   media_type   maxLength128minLength1pattern^[A-Za-z0-9][A-Za-z0-9._@+-]{0,63}$titleArtifact Idtypestringminimum0titleByte Lengthtypeintegerdefault☑ truetitleCompletetypebooleandescriptionSHA-256 of the referenced contentpattern^[0-9a-f]{64}$titleContent HashtypestringmaxLength128minLength1titleMedia Typetypestringartifact_idcontent_hashbyte_lengthmedia_type
Structure of the JSON Schema ArtifactReference.

Properties

  • artifact_id (string, required)
  • byte_length (integer, required)
  • complete (boolean)
  • content_hash (string, required): SHA-256 of the referenced content
  • media_type (string, required)

Source

Schema file: schemas/artifact_reference.schema.json