{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/istreamplanet/json-schema/istreamplanet-summary-schema.json",
  "title": "Summary",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/istreamplanet-channels-api-openapi.yml#/components/schemas/Summary",
  "additionalProperties": false,
  "properties": {
    "desired_state": {
      "description": "Desired state of channel",
      "enum": [
        "ON",
        "OFF"
      ],
      "type": "string"
    },
    "etag": {
      "description": "Content hash",
      "type": "string"
    },
    "id": {
      "description": "Unique channel ID",
      "type": "string"
    },
    "labels": {
      "description": "Channel Labels",
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "name": {
      "description": "Friendly channel description",
      "type": "string"
    },
    "org": {
      "description": "Organization",
      "type": "string"
    },
    "self": {
      "description": "Link to this resource",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "source": {
      "$ref": "#/$defs/SourceSummary",
      "description": "Channel source"
    }
  },
  "required": [
    "org",
    "id",
    "etag",
    "source",
    "desired_state"
  ],
  "type": "object",
  "$defs": {
    "SourceSummary": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "description": "Station source ID",
          "type": "string"
        },
        "name": {
          "description": "Source name",
          "type": "string"
        },
        "self": {
          "description": "Link to this resource",
          "format": "uri",
          "readOnly": true,
          "type": "string"
        }
      },
      "required": [
        "id"
      ],
      "type": "object"
    }
  }
}