{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ydb-qdrant-tech/json-schema/ydb-qdrant-tech-collection-info-envelope-schema.json",
  "title": "CollectionInfoEnvelope",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ydb-qdrant-tech-collections-api-openapi.yml#/components/schemas/CollectionInfoEnvelope",
  "allOf": [
    {
      "$ref": "#/$defs/QdrantEnvelope"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "$ref": "#/$defs/CollectionInfo"
        }
      }
    }
  ],
  "$defs": {
    "CollectionInfo": {
      "type": "object",
      "required": [
        "status",
        "points_count",
        "name",
        "vectors",
        "config"
      ],
      "properties": {
        "status": {
          "type": "string"
        },
        "points_count": {
          "type": "integer",
          "minimum": 0
        },
        "name": {
          "type": "string"
        },
        "vectors": {
          "$ref": "#/$defs/VectorParams"
        },
        "config": {
          "type": "object",
          "required": [
            "params"
          ],
          "properties": {
            "params": {
              "type": "object",
              "required": [
                "vectors"
              ],
              "properties": {
                "vectors": {
                  "$ref": "#/$defs/VectorParams"
                }
              }
            }
          }
        }
      }
    },
    "Distance": {
      "type": "string",
      "enum": [
        "Cosine",
        "Euclid",
        "Dot",
        "Manhattan"
      ]
    },
    "QdrantEnvelope": {
      "type": "object",
      "required": [
        "status",
        "result",
        "time",
        "usage"
      ],
      "properties": {
        "status": {
          "type": "string",
          "const": "ok"
        },
        "result": true,
        "time": {
          "type": "number",
          "minimum": 0
        },
        "usage": {
          "type": "null"
        }
      }
    },
    "VectorParams": {
      "type": "object",
      "required": [
        "size",
        "distance"
      ],
      "properties": {
        "size": {
          "type": "integer",
          "minimum": 1
        },
        "distance": {
          "$ref": "#/$defs/Distance"
        },
        "data_type": {
          "type": "string",
          "enum": [
            "float"
          ],
          "default": "float"
        }
      },
      "additionalProperties": false
    }
  }
}