{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentwebmap-com/json-schema/agentwebmap-com-website-audit-schema.json",
  "title": "WebsiteAudit",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentwebmap-com-audit-api-openapi.yml#/components/schemas/WebsiteAudit",
  "type": "object",
  "properties": {
    "ok": {
      "const": true
    },
    "domain": {
      "type": "string"
    },
    "checked_at": {
      "type": "string"
    },
    "homepage": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "http_status": {
          "type": [
            "integer",
            "null"
          ]
        },
        "same_publisher": {
          "type": "boolean"
        }
      },
      "required": [
        "url",
        "http_status",
        "same_publisher"
      ],
      "additionalProperties": false
    },
    "llms_txt": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "url": {
              "type": "string"
            },
            "verdict": {
              "type": "string"
            },
            "checked_at": {
              "type": [
                "string",
                "null"
              ]
            },
            "recommendations": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "severity": {
                    "type": "string"
                  },
                  "fix": {
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "severity",
                  "fix"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "url",
            "verdict",
            "checked_at",
            "recommendations"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "robots": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "http_status": {
          "type": [
            "integer",
            "null"
          ]
        },
        "observed": {
          "type": "boolean"
        },
        "agents": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "agent": {
                "type": "string"
              },
              "purpose": {
                "type": "string"
              },
              "home": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "llms_txt": {
                "type": [
                  "boolean",
                  "null"
                ]
              }
            },
            "required": [
              "agent",
              "purpose",
              "home",
              "llms_txt"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "url",
        "http_status",
        "observed",
        "agents"
      ],
      "additionalProperties": false
    },
    "mcp_links": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "webmcp": {
      "type": "object",
      "properties": {
        "static_hint": {
          "type": "boolean"
        },
        "browser_confirmed": {
          "const": false
        }
      },
      "required": [
        "static_hint",
        "browser_confirmed"
      ],
      "additionalProperties": false
    },
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "action": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "title",
          "detail",
          "action"
        ],
        "additionalProperties": false
      }
    },
    "meaning": {
      "type": "string"
    }
  },
  "required": [
    "ok",
    "domain",
    "checked_at",
    "homepage",
    "llms_txt",
    "robots",
    "mcp_links",
    "webmcp",
    "findings",
    "meaning"
  ],
  "additionalProperties": false
}