{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nodcheck-com/json-schema/nodcheck-com-check-result-schema.json",
  "title": "CheckResult",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nodcheck-com-openapi.json#/components/schemas/CheckResult",
  "type": "object",
  "properties": {
    "verdict": {
      "enum": [
        "pass",
        "fail"
      ]
    },
    "summary": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "n": {
            "type": "integer",
            "description": "Which item, starting at 1"
          },
          "criterion": {
            "type": "string",
            "description": "The original text of the criterion you submitted (truncated to 200 characters)"
          },
          "kind": {
            "type": "string",
            "description": "Which check produced the verdict; unverifiable means this one cannot be checked mechanically"
          },
          "parsed": {
            "type": "boolean",
            "description": "Whether it was parsed into a checkable form (when false, met is always false)"
          },
          "met": {
            "type": "boolean"
          },
          "missing": {
            "type": "string",
            "description": "Why it was not met: the real value versus the declared one, and how to fix it"
          }
        }
      }
    },
    "next": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "record": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "verify_url": {
          "type": "string"
        },
        "sig": {
          "type": "string"
        }
      }
    },
    "ai_diagnostic": {
      "type": "object",
      "description": "Present only when some criteria were not parsed: the number unparsed plus the state of the AI fallback"
    },
    "billing": {
      "type": "object",
      "properties": {
        "agent_id": {
          "type": "string"
        },
        "balance": {
          "type": "integer"
        },
        "charged": {
          "type": "integer"
        },
        "income": {
          "type": [
            "object",
            "null"
          ],
          "description": "The payment handed over on this call; null if none"
        },
        "prices_version": {
          "type": "string"
        }
      }
    }
  }
}