{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/onyphe/json-schema/onyphe-pivot-query-response-schema.json",
  "title": "PivotQueryResponse",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/onyphe-openapi.yml#/components/schemas/PivotQueryResponse",
  "type": "object",
  "properties": {
    "count": {
      "type": "integer",
      "description": "Number of distinct values."
    },
    "error": {
      "type": "integer",
      "description": "0 on success."
    },
    "results": {
      "type": "array",
      "description": "One object per distinct value, nested by the field path (e.g. `{\"cert\":{\"issuer\":{\"cn\":\"r12\"}}}`). Values are lowercased.",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "text": {
      "type": "string"
    },
    "trusted": {
      "type": "string",
      "enum": [
        "true",
        "false"
      ]
    }
  },
  "required": [
    "error"
  ]
}