{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sweetvaluelab-com/json-schema/sweetvaluelab-com-precheck-report-schema.json",
  "title": "PrecheckReport",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sweetvaluelab-com-openapi.json#/components/schemas/PrecheckReport",
  "type": "object",
  "required": [
    "ok",
    "issues"
  ],
  "properties": {
    "ok": {
      "type": "boolean",
      "description": "True when no issue is an error."
    },
    "issues": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PrecheckIssue"
      }
    },
    "checkedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "PrecheckIssue": {
      "type": "object",
      "required": [
        "severity",
        "message"
      ],
      "description": "One finding. `error` blocks saving or submission; `warn` is reported and does not.",
      "properties": {
        "severity": {
          "type": "string",
          "enum": [
            "error",
            "warn"
          ]
        },
        "message": {
          "type": "string"
        },
        "line": {
          "type": "integer",
          "description": "1-based line in the document that was sent, when the finding has one."
        },
        "key": {
          "type": "string",
          "description": "The frontmatter field at fault, when it is one."
        }
      }
    }
  }
}