markspec/diagnostics/v1.json

Validation and compilation diagnostics payload.

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

Build diagnostics (errors, warnings, informational messages) from the compilation pipeline. Produced at api/diagnostics/index.json. Makes the site a complete build report for CI and auditor consumption without needing the CLI. Each diagnostic carries a code, severity, message, and optional source location.

Quick guide

Properties

PathTypeRequiredDescription
countintegeryesTotal number of diagnostics
bySeverityobjectyesCounts per severity level
bySeverity.errorintegeryesNumber of error-level diagnostics
bySeverity.warningintegeryesNumber of warning-level diagnostics
bySeverity.infointegeryesNumber of informational diagnostics
diagnostics[]object[]yesIndividual diagnostic records
diagnostics[].severitystringyeserror, warning, or info
diagnostics[].codestringyesDiagnostic code (e.g., MSL-R003)
diagnostics[].messagestringyesHuman-readable message
diagnostics[].locationobjectyesSource location
diagnostics[].location.filestringyesRelative file path
diagnostics[].location.lineintegeryesLine number (1-based)
diagnostics[].location.columnintegerColumn number (1-based)
diagnostics[].entrystringRelated entry display ID

Common pitfall

Do not assume entry is present for every diagnostic.