{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/insuremo-com/json-schema/insuremo-com-query-result-schema.json",
  "title": "QueryResult",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/insuremo-com-customer-openapi.yml#/components/schemas/QueryResult",
  "type": "object",
  "properties": {
    "AggConditions": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    },
    "Aggs": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    },
    "GroupField": {
      "type": "string"
    },
    "MaxPageCount": {
      "type": "integer",
      "format": "int64"
    },
    "PageNo": {
      "type": "integer",
      "format": "int32"
    },
    "PageSize": {
      "type": "integer",
      "format": "int32"
    },
    "Results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GroupResult"
      }
    },
    "Total": {
      "type": "integer",
      "format": "int64"
    },
    "TotalExactHitCount": {
      "type": "integer",
      "format": "int64"
    }
  },
  "$defs": {
    "GroupResult": {
      "type": "object",
      "properties": {
        "EsDocs": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        },
        "GroupTotalNum": {
          "type": "integer",
          "format": "int64"
        },
        "GroupValue": {
          "type": "string"
        },
        "InnerDocs": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      }
    }
  }
}