{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carbon-arc/json-schema/carbon-arc-insight-list-response-schema.json",
  "title": "InsightListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/carbon-arc-ontology-api-openapi.yml#/components/schemas/InsightListResponse",
  "properties": {
    "insights": {
      "items": {
        "$ref": "#/$defs/Insight"
      },
      "type": "array",
      "title": "Insights"
    },
    "source_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Count"
    },
    "subject_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subject Count"
    }
  },
  "type": "object",
  "required": [
    "insights"
  ],
  "$defs": {
    "Insight": {
      "properties": {
        "insight_id": {
          "type": "integer",
          "title": "Insight Id"
        },
        "insight_name": {
          "type": "string",
          "title": "Insight Name"
        },
        "topic_id": {
          "type": "integer",
          "title": "Topic Id"
        },
        "topic_name": {
          "type": "string",
          "title": "Topic Name"
        },
        "is_event": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Is Event"
        }
      },
      "type": "object",
      "required": [
        "insight_id",
        "insight_name",
        "topic_id",
        "topic_name"
      ],
      "title": "Insight"
    }
  }
}