{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "name": "string",
    "description": "string",
    "url": "string",
    "icon": "string",
    "background": "string",
    "channels": {
        "type": "array",
        "_uniqueItems": true,
        "items": {
            "type": "object",
            "required": [
                "id"
            ],
            "properties": {
                "id": {
                    "type": "string"
                },
                "title": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "dj": {
                    "type": "string"
                },
                "djmail": {
                    "type": "string"
                },
                "genre": {
                    "type": "string"
                },
                "image": {
                    "type": "string"
                },
                "largeimage": {
                    "type": "string"
                },
                "xlimage": {
                    "type": "string"
                },
                "twitter": {
                    "type": "string"
                },
                "updated": {
                    "type": "string"
                },
                "playlists": {
                    "type": "array",
                    "_uniqueItems": true,
                    "items": {
                        "type": "object",
                        "required": [
                            "url",
                            "format",
                            "quality"
                        ],
                        "properties": {
                            "url": {
                                "type": "string"
                            },
                            "format": {
                                "enum": [
                                    "mp3",
                                    "aac",
                                    "aacp"
                                ]
                            },
                            "quality": {
                                "enum": [
                                    "low",
                                    "high",
                                    "highest"
                                ]
                            }
                        }
                    }
                },
                "listeners": {
                    "type": "string",
                    "pattern": "[0-9]*"
                },
                "lastPlaying": {
                    "type": "string"
                },
                "lastPlayingImage": {
                    "type": "string",
                    "format": "url"
                },
                "lastPlayingAlbum": {
                    "type": "string"
                },
                "lastPlayingTrack": {
                    "type": "string"
                },
                "lastPlayingLabel": {
                    "type": "string"
                },
                "lastPlayingCountry": {
                    "type": "string"
                },
                "lastPlayingYear": {
                    "type": "string",
                    "pattern": "[0-9]*"
                }
            }
        }
    },
    "properties": {
        "channels": {
            "$ref": "#/channels"
        }
    },
    "required": [
        "channels"
    ]
}