{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eightfold-ai/json-schema/eightfold-ai-insights-schema-schema.json",
  "title": "InsightsSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eightfold-ai-insights-api-openapi.yml#/components/schemas/InsightsSchema",
  "type": "object",
  "properties": {
    "resultCount": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "readOnly": true,
      "description": "Number of Results"
    },
    "fieldInsights": {
      "readOnly": true,
      "description": "List of field insights",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/fieldInsight"
      }
    }
  },
  "$defs": {
    "CountValue": {
      "type": "object",
      "properties": {
        "count": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "readOnly": true,
          "description": "Count of fields for a value"
        },
        "value": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "value of field."
        }
      }
    },
    "fieldInsight": {
      "type": "object",
      "properties": {
        "field": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "field name for insight"
        },
        "values": {
          "readOnly": true,
          "description": "value dictionary for insight.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/CountValue"
          }
        }
      }
    }
  }
}