{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bizzy-fm/json-schema/bizzy-fm-station-schema.json",
  "title": "Station",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bizzy-fm-openapi.json#/components/schemas/Station",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
      "description": "Station UUID from the Bizzy catalog. Never invent an ID."
    },
    "name": {
      "type": "string",
      "description": "Station name as supplied by the backend."
    },
    "location": {
      "type": "string",
      "description": "Backend location, or an empty string if unspecified."
    },
    "listen_url": {
      "type": "string",
      "format": "uri",
      "description": "Canonical Bizzy listening page to share with a person; not a raw audio stream."
    },
    "availability": {
      "type": "string",
      "enum": [
        "available",
        "unavailable",
        "unknown"
      ],
      "description": "Backend health flag, not a live playback guarantee."
    }
  },
  "required": [
    "id",
    "name",
    "location",
    "listen_url",
    "availability"
  ],
  "additionalProperties": false
}