{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cesium/json-schema/cesium-label-list-item-schema.json",
  "title": "LabelListItem",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cesium-labels-api-openapi.yml#/components/schemas/LabelListItem",
  "allOf": [
    {
      "$ref": "#/$defs/LabelMetadata"
    },
    {
      "type": "object",
      "properties": {
        "assets": {
          "type": "integer",
          "description": "The number of assets currently using this label.",
          "readOnly": true
        },
        "stories": {
          "type": "integer",
          "description": "The number of stories currently using this label.",
          "readOnly": true
        }
      },
      "required": [
        "assets",
        "stories"
      ]
    }
  ],
  "$defs": {
    "LabelIdentifier": {
      "type": "integer",
      "description": "The unique identifier for this label."
    },
    "LabelMetadata": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/LabelIdentifier"
        },
        "name": {
          "$ref": "#/$defs/LabelName"
        },
        "color": {
          "$ref": "#/$defs/LabelResponseColor"
        }
      },
      "required": [
        "id",
        "name",
        "color"
      ]
    },
    "LabelName": {
      "type": "string",
      "description": "The name of this label."
    },
    "LabelResponseColor": {
      "type": "string",
      "description": "The label color encoded as a CSS hex string."
    }
  }
}