Skip to content

Instantly share code, notes, and snippets.

@brainwo
Last active April 25, 2024 11:41
Yatta Schema Draft
{
"$id": "https://example.com/person.schema.json",
"$schema": "https://gist.githubusercontent.com/brainwo/7eeddb3b5ae171ed1c86c28df1ff6c01/raw/schema.json",
"title": "Yatta configuration file",
"type": "object",
"properties": {
"minimizedOnLaunch": {
"description": "Launch application in minimized",
"type": "boolean",
"default": false
},
"onPlay": {
"description": "Application behavior when play button is pressed",
"type": "string",
"enum": ["nothing", "minimize", "tray", "exit"],
"default": "nothing"
},
"autofocusNavigation": {
"description": "Auto focus on first item on a screen for easier keyboard navigation.",
"type": "boolean",
"default": true
},
"videoPlayCommand": {
"description": "Command executed when on Play button",
"type": "array",
"items": {
"type": "string"
}
},
"videoListenCommand": {
"description": "Command executed when on Listen button",
"type": "array",
"items": {
"type": "string"
}
},
"youtube": {
"type": "object",
"properties": {
"apiKey": {
"type": "string",
"description": "YouTube Data API v3 API Key."
},
"enablePublishDate": {
"type": "boolean",
"description": "Show Publish Date on search result (might cost more quota)."
},
"enableWatchcount": {
"type": "boolean",
"description": "Show Watch Count on search result (might cost more quota)."
},
"resultPerSearch": {
"type": "integer",
"description": "Numbers of results fetched every one API call."
},
"infiniteScrollSearch": {
"type": "boolean",
"description": "Enable infinite scroll on YouTube search (will cost more quota when enabled)."
},
"regionId": {
"type": "string",
"description": "Region of the search results."
}
},
"required": ["apiKey"]
},
"theme": {
"description": "Application theme related configuration.",
"type": "object",
"properties": {
"brightness": {
"description": "Brightness of the application.",
"type": "string",
"enum": ["light", "dark", "system"],
"default": "system"
},
"visualDensity": {
"description": "How large an UI element appears.",
"type": "string",
"enum": ["compact", "standard", "comfort", "adaptive"],
"default": "adaptive"
}
}
},
"history": {
"description": "History and Saved Playlist related configuration.",
"type": "object",
"properties": {
"pause": {
"description": "Pause history, not receiving any more new playback history.",
"type": "boolean",
"default": false
},
"size": {
"description": "Number of history of keep.",
"type": "integer",
"default": 2000
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment