Skip to content
Margo dev

Doctor report schema

#

This schema describes the complete report produced by margo doctor --diagnostics json, including renderer candidates and their availability.

Margo doctor report v1

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

  • build object required

    Identity of the Margo binary that produced the report.

    • arch string required

      Target architecture.

    • commit string required

      Source commit used to build the binary.

    • goVersion string required

      Go toolchain identity.

    • os string required

      Target operating system.

    • version string required

      Margo release or development version.

  • candidates array required

    PDF engine candidates in deterministic discovery order.

    • *
      • available boolean required

        Whether the candidate can be selected for rendering.

      • code string

        Stable diagnostic code when discovery or probing failed.

      • compiled boolean required

        Whether this candidate is compiled into the binary.

      • name string required

        Engine name.

      • path string

        Executable path when the candidate is external.

      • reason string

        Human-readable discovery or probe explanation.

      • source string required

        How the candidate was discovered.

        Constraints
        enum=["flag","environment","path","known-location","native"]
      • version string

        Detected executable version.

Used by

  • The margo doctor JSON output.
  • Automation that records local PDF renderer availability.
  • margo schema doctor-report, which emits the exact embedded bytes.