{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentwebmap-com/json-schema/agentwebmap-com-draft-validation-schema.json",
  "title": "DraftValidation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentwebmap-com-validate-api-openapi.yml#/components/schemas/DraftValidation",
  "type": "object",
  "properties": {
    "ok": {
      "const": true
    },
    "valid": {
      "type": "boolean"
    },
    "verdict": {
      "enum": [
        "valid",
        "needs work"
      ]
    },
    "checked_at": {
      "type": "string"
    },
    "url": {
      "type": [
        "string",
        "null"
      ]
    },
    "bytes": {
      "type": "integer"
    },
    "parsed": {
      "type": "object",
      "properties": {
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "summary": {
          "type": [
            "string",
            "null"
          ]
        },
        "sectionCount": {
          "type": "integer"
        },
        "linkCount": {
          "type": "integer"
        }
      },
      "required": [
        "title",
        "summary",
        "sectionCount",
        "linkCount"
      ],
      "additionalProperties": false
    },
    "checks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "label": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          },
          "optional": {
            "type": "boolean"
          },
          "severity": {
            "enum": [
              "pass",
              "error",
              "warning",
              "info"
            ]
          },
          "fix": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "code",
          "ok",
          "label",
          "detail",
          "required",
          "optional",
          "severity",
          "fix"
        ],
        "additionalProperties": false
      }
    },
    "score": {
      "type": "integer"
    },
    "max": {
      "type": "integer"
    },
    "recommendations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "severity": {
            "type": "string"
          },
          "fix": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "severity",
          "fix"
        ],
        "additionalProperties": false
      }
    },
    "meaning": {
      "type": "string"
    }
  },
  "required": [
    "ok",
    "valid",
    "verdict",
    "checked_at",
    "url",
    "bytes",
    "parsed",
    "checks",
    "score",
    "max",
    "recommendations",
    "meaning"
  ],
  "additionalProperties": false
}