{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-label-group-schema.json",
  "title": "LabelGroup",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-labels-api-openapi.yml#/components/schemas/LabelGroup",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the label group"
    },
    "name": {
      "type": "string",
      "description": "Name of the label group"
    },
    "source_org_type": {
      "type": "string",
      "enum": [
        "current",
        "related"
      ],
      "description": "Source organization type where the label group is listed.\n`current` means the label group is listed in the organization with which the Open API App is associated.\n`related` means the label group is listed in one of the organizations related to the `current` organization.\n"
    },
    "values": {
      "description": "Values of the label group",
      "type": "array",
      "items": {
        "$ref": "#/$defs/LabelGroupValue"
      }
    }
  },
  "required": [
    "id",
    "name",
    "source_org_type",
    "values"
  ],
  "$defs": {
    "LabelGroupValue": {
      "type": "object",
      "additionalProperties": false,
      "description": "Values of a label group",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the label group value"
        },
        "name": {
          "type": "string",
          "description": "Name of the label group value"
        }
      },
      "required": [
        "id",
        "name"
      ]
    }
  }
}