markspec/reference/v1.json

Reference entry payload (standards, norms, external documents).

Schema URL: https://driftsys.github.io/schemas/markspec/reference/v1.json

Represents a reference entry for external standards, documents, or norms. Same base shape as an entry but with different required fields and additional metadata (document number, external URL, lifecycle status). Produced at api/entries/refs/{display-id}.json.

Quick guide

Properties

PathTypeRequiredDescription
displayIdstringyesHuman-readable display ID (e.g., ISO-26262-6)
titlestringyesReference title
sourcestringyesmarkdown or doc-comment
locationobjectyesSource location where the reference was defined
location.filestringyesRelative file path from the project root
location.lineintegeryesLine number (1-based)
location.columnintegerColumn number (1-based)
idstringULID identifier
bodystringReference body rendered as Markdown
documentstring \nullDocument number or standard identifier
externalUrlstring \nullURL to the external document
statusstring \nullactive, superseded, or withdrawn
supersededBystring \nullDisplay ID of the superseding reference
attributes[]object[]Custom attributes (key, value pairs)
labelsstring[]Labels attached to this reference
createdAtstring (date-time)Creation timestamp
createdBystringCreation author
updatedAtstring (date-time)Latest update timestamp
updatedBystringLatest update author
linksobjectIncoming links
links.referencedBylinkTarget[]Entries that reference this document
urlstringRelative URL to this reference's detail page

Common pitfall

Do not require entryType for references.