Skip to content
Margo dev

Check report schema

#

This schema describes the complete report produced by margo check --diagnostics json, including findings and summary counts.

Margo check report v1

The JSON envelope emitted by margo check --diagnostics json.

  • diagnostics array required

    All findings, including warnings, in source order.

    • *
      • code string required
        Constraints
        minLength=1
      • column integer
        Constraints
        minimum=1
      • hint string
      • line integer
        Constraints
        minimum=1
      • message string required
        Constraints
        minLength=1
      • pointer string
      • severity string
        Constraints
        enum=["info","warning","error"]
      • source string
  • errors integer required

    Number of error-severity findings.

    Constraints
    minimum=0
  • policy string

    SHA-256 identity of the trusted host policy when one was supplied.

  • warnings integer required

    Number of warning-severity findings.

    Constraints
    minimum=0

Used by

  • The margo check JSON output.
  • CI checks that consume compatibility findings deterministically.
  • margo schema check-report, which emits the exact embedded bytes.