{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ydb-qdrant-tech/json-schema/ydb-qdrant-tech-query-points-envelope-schema.json",
  "title": "QueryPointsEnvelope",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ydb-qdrant-tech-openapi.json#/components/schemas/QueryPointsEnvelope",
  "allOf": [
    {
      "$ref": "#/$defs/QdrantEnvelope"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": "object",
          "required": [
            "points"
          ],
          "properties": {
            "points": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/ScoredPoint"
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "Payload": {
      "type": "object",
      "additionalProperties": true
    },
    "QdrantEnvelope": {
      "type": "object",
      "required": [
        "status",
        "result",
        "time",
        "usage"
      ],
      "properties": {
        "status": {
          "type": "string",
          "const": "ok"
        },
        "result": true,
        "time": {
          "type": "number",
          "minimum": 0
        },
        "usage": {
          "type": "null"
        }
      }
    },
    "ScoredPoint": {
      "type": "object",
      "required": [
        "id",
        "version",
        "score",
        "payload",
        "vector",
        "shard_key",
        "order_value"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Stored point id. Numeric request ids are normalized to strings before storage and search results."
        },
        "version": {
          "type": "integer"
        },
        "score": {
          "type": "number"
        },
        "payload": {
          "oneOf": [
            {
              "$ref": "#/$defs/Payload"
            },
            {
              "type": "null"
            }
          ]
        },
        "vector": {
          "type": "null",
          "description": "Vectors are not returned by the current search/query response projection."
        },
        "shard_key": {
          "type": "null"
        },
        "order_value": {
          "type": "null"
        }
      }
    }
  }
}