Skip to content

JSON Envelope Reference

Priority commands write a versioned JSON envelope.

json
{
  "schemaVersion": "1.0",
  "command": "check",
  "status": "passed",
  "exitCode": 0,
  "project": {},
  "summary": {},
  "diagnostics": [],
  "artifacts": [],
  "timings": {},
  "suggestions": [],
  "tests": [],
  "data": {}
}

Fields

FieldTypeNotes
schemaVersionstringEnvelope version. Current value is 1.0.
commandstringCommand that produced the output.
statusstringpassed, failed, partial, or unsupported where supported.
exitCodenumberProcess exit status.
projectobjectProject root and package information when known.
summaryobjectCommand-specific counts.
diagnosticsarrayStable diagnostic objects.
artifactsarrayFiles written by the command.
timingsobjectTimings when reported.
suggestionsarrayNext commands to run.
testsarrayFlat test rows for glade test.
dataobjectCommand-specific detail during migration.

Diagnostic object

json
{
  "code": "GLADESEMA002",
  "severity": "error",
  "message": "method \"latestInvoice\" references unknown type \"Invoice__c\"",
  "file": "force-app/main/default/classes/RefinementService.cls",
  "line": 2,
  "column": 3,
  "why": "The Apex type reference is not present in local Apex, schema, or platform symbols.",
  "try": [
    "glade schema load --project .",
    "glade check --project ."
  ],
  "docs": "https://glade.sh/guide/errors#gladesema002"
}

Glade is local-first Apex tooling.