{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.dektec.com/ai/schemas/catalog.schema.json",
  "title": "DekTec reference catalog",
  "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
    },
    "records": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "title": {
            "type": "string",
            "minLength": 1
          },
          "category": {
            "enum": [
              "hardware",
              "catalog",
              "software",
              "sdk",
              "downloads",
              "compatibility",
              "firmware",
              "technology",
              "support"
            ]
          },
          "source_url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://www\\.dektec\\.com/"
          },
          "model": {
            "type": "string",
            "minLength": 1
          },
          "description": {
            "type": "string",
            "minLength": 1
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "heading": {
                  "type": "string",
                  "minLength": 1
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  },
                  "minItems": 1
                }
              },
              "required": [
                "heading",
                "items"
              ],
              "additionalProperties": false
            },
            "minItems": 1
          },
          "links": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string",
                  "minLength": 1
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https://www\\.dektec\\.com/"
                },
                "kind": {
                  "enum": [
                    "page",
                    "pdf"
                  ]
                }
              },
              "required": [
                "label",
                "url",
                "kind"
              ],
              "additionalProperties": false
            },
            "minItems": 0
          }
        },
        "required": [
          "id",
          "title",
          "category",
          "source_url",
          "sections",
          "links"
        ],
        "additionalProperties": false
      },
      "minItems": 1
    }
  },
  "required": [
    "$schema",
    "version",
    "language",
    "verified_on",
    "method",
    "coverage_notes",
    "records"
  ],
  "additionalProperties": false
}
