{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "directory": {
      "type": "string"
    },
    "agentMode": {
      "type": "string",
      "enum": ["unattended", "interactive"],
      "description": "unattended when the agent's launcher set DOMINO_AGENT_MODE=unattended."
    },
    "versions": {
      "type": "object",
      "properties": {
        "cli": {
          "type": "string"
        }
      },
      "required": ["cli"],
      "additionalProperties": {}
    },
    "healthy": {
      "type": "boolean"
    },
    "scope": {
      "type": "object",
      "properties": {
        "apiUrl": {
          "type": "string"
        },
        "organization": {
          "type": "string"
        },
        "project": {
          "type": "string"
        },
        "environment": {
          "type": "string",
          "enum": ["test", "live"]
        }
      },
      "required": ["apiUrl"],
      "additionalProperties": {}
    },
    "scopeSources": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": ["flag", "environment", "checkout", "manifest", "default"]
          }
        },
        "required": ["kind"],
        "additionalProperties": {}
      }
    },
    "checks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["ok", "warning", "error"]
          },
          "message": {
            "type": "string"
          }
        },
        "required": ["id", "status", "message"],
        "additionalProperties": {}
      }
    },
    "next": {
      "type": "string"
    }
  },
  "required": [
    "directory",
    "versions",
    "healthy",
    "scope",
    "scopeSources",
    "checks",
    "next"
  ],
  "additionalProperties": {},
  "title": "Doctor",
  "description": "Printed with exit 1 and DOCTOR_UNHEALTHY on stderr when healthy is false."
}
