{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cloudflare/main/json-schema/cloudflare-index-input-schema.json",
  "title": "IndexInput",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudflare-indexes-api-openapi.yml#/components/schemas/IndexInput",
  "type": "object",
  "required": [
    "name",
    "config"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the index."
    },
    "description": {
      "type": "string",
      "description": "Description of the index."
    },
    "config": {
      "type": "object",
      "required": [
        "dimensions",
        "metric"
      ],
      "properties": {
        "dimensions": {
          "type": "integer",
          "description": "Number of dimensions."
        },
        "metric": {
          "type": "string",
          "enum": [
            "cosine",
            "euclidean",
            "dot-product"
          ]
        }
      }
    }
  }
}