{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.dektec.com/ai/schemas/manifest.schema.json",
  "title": "DekTec reference manifest",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string",
      "format": "uri",
      "pattern": "^https://www\\.dektec\\.com/"
    },
    "version": {
      "const": "1.0.0"
    },
    "language": {
      "const": "en"
    },
    "verified_on": {
      "type": "string",
      "format": "date"
    },
    "method": {
      "type": "string",
      "minLength": 1
    },
    "coverage_notes": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "minItems": 1
    },
    "title": {
      "type": "string",
      "minLength": 1
    },
    "publication_url": {
      "type": "string",
      "format": "uri",
      "pattern": "^https://www\\.dektec\\.com/"
    },
    "record_count": {
      "type": "integer",
      "minimum": 1
    },
    "files": {
      "type": "object",
      "properties": {
        "landing_page": {
          "type": "string",
          "pattern": "^(?:topics/|schemas/)?[a-zA-Z0-9.-]+\\.(?:md|json|html|txt)$"
        },
        "catalog": {
          "type": "string",
          "pattern": "^(?:topics/|schemas/)?[a-zA-Z0-9.-]+\\.(?:md|json|html|txt)$"
        },
        "markdown": {
          "type": "string",
          "pattern": "^(?:topics/|schemas/)?[a-zA-Z0-9.-]+\\.(?:md|json|html|txt)$"
        },
        "ai_index": {
          "type": "string",
          "pattern": "^(?:topics/|schemas/)?[a-zA-Z0-9.-]+\\.(?:md|json|html|txt)$"
        },
        "prompts": {
          "type": "string",
          "pattern": "^(?:topics/|schemas/)?[a-zA-Z0-9.-]+\\.(?:md|json|html|txt)$"
        },
        "catalog_schema": {
          "type": "string",
          "pattern": "^(?:topics/|schemas/)?[a-zA-Z0-9.-]+\\.(?:md|json|html|txt)$"
        },
        "manifest_schema": {
          "type": "string",
          "pattern": "^(?:topics/|schemas/)?[a-zA-Z0-9.-]+\\.(?:md|json|html|txt)$"
        }
      },
      "required": [
        "landing_page",
        "catalog",
        "markdown",
        "ai_index",
        "prompts",
        "catalog_schema",
        "manifest_schema"
      ],
      "additionalProperties": false
    },
    "topics": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "enum": [
              "hardware",
              "catalog",
              "software",
              "sdk",
              "downloads",
              "compatibility",
              "firmware",
              "technology",
              "support"
            ]
          },
          "title": {
            "type": "string",
            "minLength": 1
          },
          "description": {
            "type": "string",
            "minLength": 1
          },
          "file": {
            "type": "string",
            "pattern": "^(?:topics/|schemas/)?[a-zA-Z0-9.-]+\\.(?:md|json|html|txt)$"
          },
          "records": {
            "type": "integer",
            "minimum": 1
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "file",
          "records"
        ],
        "additionalProperties": false
      },
      "minItems": 1
    }
  },
  "required": [
    "$schema",
    "version",
    "language",
    "verified_on",
    "method",
    "coverage_notes",
    "title",
    "publication_url",
    "record_count",
    "files",
    "topics"
  ],
  "additionalProperties": false
}
