{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/neruva-io/json-schema/neruva-io-index-description-schema.json",
  "title": "IndexDescription",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/neruva-io-indexes-api-openapi.yml#/components/schemas/IndexDescription",
  "properties": {
    "name": {
      "type": "string",
      "title": "Name"
    },
    "dimension": {
      "type": "integer",
      "title": "Dimension"
    },
    "metric": {
      "type": "string",
      "title": "Metric"
    },
    "host": {
      "type": "string",
      "title": "Host"
    },
    "spec": {
      "$ref": "#/$defs/IndexSpec"
    },
    "status": {
      "$ref": "#/$defs/IndexStatus",
      "default": {
        "ready": true,
        "state": "Ready"
      }
    }
  },
  "type": "object",
  "required": [
    "name",
    "dimension",
    "metric",
    "host",
    "spec"
  ],
  "$defs": {
    "IndexSpec": {
      "properties": {
        "serverless": {
          "$ref": "#/$defs/ServerlessSpec",
          "default": {
            "cloud": "gcp",
            "region": "us-central1"
          }
        }
      },
      "type": "object",
      "title": "IndexSpec"
    },
    "IndexStatus": {
      "properties": {
        "ready": {
          "type": "boolean",
          "title": "Ready",
          "default": true
        },
        "state": {
          "type": "string",
          "title": "State",
          "default": "Ready"
        }
      },
      "type": "object",
      "title": "IndexStatus"
    },
    "ServerlessSpec": {
      "properties": {
        "cloud": {
          "type": "string",
          "title": "Cloud",
          "default": "gcp"
        },
        "region": {
          "type": "string",
          "title": "Region",
          "default": "us-central1"
        }
      },
      "type": "object",
      "title": "ServerlessSpec"
    }
  }
}