{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/artificialwatch/json-schema/artificialwatch-index-schema.json",
  "title": "Index",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/artificialwatch-openapi.json#/components/schemas/Index",
  "type": "object",
  "required": [
    "name",
    "url",
    "license",
    "sources",
    "models"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "license": {
      "type": "string",
      "format": "uri"
    },
    "attribution": {
      "type": "string"
    },
    "method": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "generatedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "name",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "scale": {
            "type": "string"
          },
          "asOf": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "models": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "rank",
          "id",
          "name",
          "vendor",
          "index",
          "boards",
          "scores",
          "page"
        ],
        "properties": {
          "rank": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "vendor": {
            "type": "string"
          },
          "index": {
            "type": "number"
          },
          "boards": {
            "type": "integer"
          },
          "scores": {
            "type": "object",
            "description": "Keyed by source id; null where the board does not rate the model",
            "additionalProperties": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "raw": {
                  "type": "number"
                },
                "percentile": {
                  "type": "number"
                }
              }
            }
          },
          "page": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  }
}