{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/okareo/json-schema/okareo-analytics-meta-response-schema.json",
  "title": "AnalyticsMetaResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/okareo-analytics-api-openapi.yml#/components/schemas/AnalyticsMetaResponse",
  "properties": {
    "cubes": {
      "additionalProperties": {
        "$ref": "#/$defs/CubeMeta"
      },
      "type": "object",
      "title": "Cubes"
    }
  },
  "type": "object",
  "required": [
    "cubes"
  ],
  "$defs": {
    "CubeMeta": {
      "properties": {
        "measures": {
          "items": {
            "$ref": "#/$defs/MeasureMetaResponse"
          },
          "type": "array",
          "title": "Measures"
        },
        "dimensions": {
          "items": {
            "$ref": "#/$defs/DimensionMetaResponse"
          },
          "type": "array",
          "title": "Dimensions"
        },
        "time_dimensions": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Time Dimensions"
        },
        "granularities": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Granularities"
        },
        "segments": {
          "items": {
            "$ref": "#/$defs/SegmentMetaResponse"
          },
          "type": "array",
          "title": "Segments"
        }
      },
      "type": "object",
      "required": [
        "measures",
        "dimensions",
        "time_dimensions",
        "granularities"
      ],
      "title": "CubeMeta"
    },
    "DimensionMetaResponse": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "type": {
          "type": "string",
          "title": "Type"
        },
        "values": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Values"
        }
      },
      "type": "object",
      "required": [
        "name",
        "title",
        "type"
      ],
      "title": "DimensionMetaResponse"
    },
    "MeasureMetaResponse": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "title": {
          "type": "string",
          "title": "Title"
        }
      },
      "type": "object",
      "required": [
        "name",
        "title"
      ],
      "title": "MeasureMetaResponse"
    },
    "SegmentMetaResponse": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "description": {
          "type": "string",
          "title": "Description"
        },
        "implies": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Implies"
        },
        "incompatible_with": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Incompatible With"
        }
      },
      "type": "object",
      "required": [
        "name",
        "title",
        "description"
      ],
      "title": "SegmentMetaResponse"
    }
  }
}