{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gloat/json-schema/gloat-analytics-config-schema.json",
  "title": "AnalyticsConfig",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gloat-analytics-api-openapi.yml#/components/schemas/AnalyticsConfig",
  "properties": {
    "sections": {
      "items": {
        "$ref": "#/$defs/Section"
      },
      "type": "array",
      "title": "Sections"
    }
  },
  "type": "object",
  "required": [
    "sections"
  ],
  "$defs": {
    "Item": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "enabled_based_on_config_path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Enabled Based On Config Path"
        },
        "enabled_based_on_split_feature_flag": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Enabled Based On Split Feature Flag"
        }
      },
      "type": "object",
      "required": [
        "id",
        "label",
        "name"
      ],
      "title": "Item"
    },
    "Section": {
      "properties": {
        "section_name": {
          "type": "string",
          "title": "Section Name"
        },
        "permission": {
          "type": "string",
          "title": "Permission"
        },
        "items": {
          "items": {
            "$ref": "#/$defs/Item"
          },
          "type": "array",
          "title": "Items"
        },
        "type": {
          "$ref": "#/$defs/SectionType",
          "default": "Dashboard"
        }
      },
      "type": "object",
      "required": [
        "section_name",
        "permission",
        "items"
      ],
      "title": "Section"
    },
    "SectionType": {
      "type": "string",
      "enum": [
        "Dashboard",
        "GenerativeQnA"
      ],
      "title": "SectionType"
    }
  }
}