{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentwebmap-com/json-schema/agentwebmap-com-check-schema.json",
  "title": "Check",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentwebmap-com-openapi.json#/components/schemas/Check",
  "type": "object",
  "properties": {
    "domain": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "checks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "label": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        },
        "required": [
          "ok",
          "label",
          "detail"
        ],
        "additionalProperties": false
      }
    },
    "score": {
      "type": "integer"
    },
    "max": {
      "type": "integer"
    },
    "listed": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "pending",
                "valid",
                "invalid",
                "unreachable"
              ]
            },
            "tier": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "featured",
                "listed",
                "unlisted",
                "rejected",
                null
              ]
            },
            "authority": {
              "type": [
                "integer",
                "null"
              ]
            },
            "verified": {
              "type": "boolean"
            },
            "page": {
              "type": "string"
            }
          },
          "required": [
            "status",
            "tier",
            "authority",
            "verified",
            "page"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "plausible": {
      "type": "boolean"
    },
    "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
    },
    "bytes": {
      "type": "integer"
    },
    "http_status": {
      "type": [
        "integer",
        "null"
      ]
    },
    "checked_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "content_hash": {
      "type": [
        "string",
        "null"
      ]
    },
    "verdict": {
      "type": "string",
      "enum": [
        "valid",
        "unreachable",
        "needs work"
      ]
    },
    "preview": {
      "type": [
        "string",
        "null"
      ]
    },
    "validation": {
      "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
    },
    "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": [
    "domain",
    "url",
    "checks",
    "score",
    "max",
    "listed",
    "verdict",
    "preview"
  ],
  "additionalProperties": false
}