{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.html-docs.com/research/html-docs-agent-compatibility-matrix-schema-2026.json",
  "title": "HTML Docs Agent Compatibility Matrix 2026",
  "description": "Validation schema for version 2.2 of the HTML Docs Agent Compatibility Matrix 2026 dataset.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name",
    "version",
    "canonical_url",
    "author",
    "publisher",
    "date_published",
    "date_modified",
    "json_url",
    "csv_url",
    "markdown_url",
    "schema_url",
    "bibtex_url",
    "citation_file_url",
    "citation",
    "markdown_citation",
    "html_citation",
    "methodology",
    "composition_pattern",
    "sources",
    "clients"
  ],
  "properties": {
    "name": { "const": "HTML Docs Agent Compatibility Matrix 2026" },
    "version": { "const": "2.2" },
    "canonical_url": { "const": "https://www.html-docs.com/plugins#compatibility-matrix" },
    "author": { "type": "string", "minLength": 1 },
    "publisher": { "type": "string", "minLength": 1 },
    "date_published": { "type": "string", "format": "date" },
    "date_modified": { "type": "string", "format": "date" },
    "json_url": { "type": "string", "format": "uri" },
    "csv_url": { "type": "string", "format": "uri" },
    "markdown_url": { "type": "string", "format": "uri" },
    "schema_url": {
      "const": "https://www.html-docs.com/research/html-docs-agent-compatibility-matrix-schema-2026.json"
    },
    "bibtex_url": { "type": "string", "format": "uri" },
    "citation_file_url": { "type": "string", "format": "uri" },
    "citation": { "type": "string", "minLength": 1 },
    "markdown_citation": { "type": "string", "minLength": 1 },
    "html_citation": { "type": "string", "minLength": 1 },
    "methodology": { "type": "string", "minLength": 1 },
    "composition_pattern": { "$ref": "#/$defs/compositionPattern" },
    "sources": {
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": { "type": "string", "format": "uri" }
    },
    "clients": {
      "type": "array",
      "minItems": 1,
      "items": { "$ref": "#/$defs/client" }
    }
  },
  "$defs": {
    "compositionPattern": {
      "type": "object",
      "additionalProperties": false,
      "required": ["name", "summary", "skill", "mcp", "example_prompt"],
      "properties": {
        "name": { "type": "string", "minLength": 1 },
        "summary": { "type": "string", "minLength": 1 },
        "skill": { "$ref": "#/$defs/skill" },
        "mcp": { "$ref": "#/$defs/mcp" },
        "example_prompt": { "type": "string", "minLength": 1 }
      }
    },
    "skill": {
      "type": "object",
      "additionalProperties": false,
      "required": ["role", "install", "source"],
      "properties": {
        "role": { "type": "string", "minLength": 1 },
        "install": { "type": "string", "minLength": 1 },
        "source": { "type": "string", "format": "uri" }
      }
    },
    "mcp": {
      "type": "object",
      "additionalProperties": false,
      "required": ["role", "endpoint", "reference"],
      "properties": {
        "role": { "type": "string", "minLength": 1 },
        "endpoint": { "type": "string", "format": "uri" },
        "reference": { "type": "string", "format": "uri" }
      }
    },
    "client": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "client",
        "recommended_path",
        "connection",
        "transport",
        "authentication",
        "support_level",
        "note",
        "source_url",
        "verified_at"
      ],
      "properties": {
        "client": { "type": "string", "minLength": 1 },
        "recommended_path": { "type": "string", "minLength": 1 },
        "connection": { "type": "string", "minLength": 1 },
        "transport": { "type": "string", "minLength": 1 },
        "authentication": { "type": "string", "minLength": 1 },
        "support_level": {
          "enum": [
            "direct-setup",
            "installer-supported",
            "plan-dependent",
            "custom-connector",
            "protocol-compatible"
          ]
        },
        "note": { "type": "string", "minLength": 1 },
        "source_url": { "type": "string", "format": "uri" },
        "verified_at": { "type": "string", "format": "date" }
      }
    }
  }
}
