2024-06-22 04:19:39 -04:00
{
2024-06-30 10:10:17 -04:00
"$defs" : {
2024-07-08 22:52:49 -04:00
"CocoaReceiverConfig" : {
"properties" : {
"kind" : {
"const" : "cocoa" ,
"default" : "cocoa" ,
"enum" : [
"cocoa"
] ,
"title" : "Kind" ,
"type" : "string"
}
} ,
"title" : "CocoaReceiverConfig" ,
"type" : "object"
} ,
2024-06-30 10:10:17 -04:00
"MpdConfig" : {
2024-06-22 04:19:39 -04:00
"properties" : {
"host" : {
"default" : "127.0.0.1" ,
2024-06-22 06:12:23 -04:00
"description" : "The hostname or IP address of your MPD server. If you're running MPD on your local machine, you don't need to configure this." ,
2024-06-22 04:19:39 -04:00
"format" : "hostname" ,
2024-06-30 10:10:17 -04:00
"title" : "Host" ,
2024-06-22 04:19:39 -04:00
"type" : "string"
} ,
"password" : {
2024-06-22 06:12:23 -04:00
"description" : "The password required to connect to your MPD instance, if you need one." ,
2024-06-30 10:10:17 -04:00
"format" : "password" ,
"title" : "Password" ,
"type" : "string" ,
"writeOnly" : true
2024-06-22 04:19:39 -04:00
} ,
"port" : {
"default" : 6600 ,
2024-06-22 06:12:23 -04:00
"description" : "The port on which to connect to MPD. Unless you're managing multiple MPD servers on one machine for some reason, you probably haven't changed this from the default port, 6600." ,
2024-06-22 04:19:39 -04:00
"maximum" : 65535 ,
"minimum" : 1 ,
2024-06-30 10:10:17 -04:00
"title" : "Port" ,
2024-06-22 04:19:39 -04:00
"type" : "integer"
}
} ,
2024-06-30 10:10:17 -04:00
"title" : "MpdConfig" ,
2024-06-22 04:19:39 -04:00
"type" : "object"
2024-07-13 04:34:53 -04:00
} ,
"WebsocketsReceiverConfig" : {
"properties" : {
"host" : {
"anyOf" : [
{
"format" : "hostname" ,
"type" : "string"
} ,
{
"items" : {
"format" : "hostname" ,
"type" : "string"
} ,
"type" : "array"
}
] ,
"title" : "Host"
} ,
"kind" : {
"const" : "websockets" ,
"default" : "websockets" ,
"enum" : [
"websockets"
] ,
"title" : "Kind" ,
"type" : "string"
} ,
"port" : {
"maximum" : 65535 ,
"minimum" : 1 ,
"title" : "Port" ,
"type" : "integer"
}
} ,
"required" : [
"port"
] ,
"title" : "WebsocketsReceiverConfig" ,
"type" : "object"
2024-06-22 04:19:39 -04:00
}
} ,
2024-06-30 10:10:17 -04:00
"$id" : "https://cdn.00dani.me/m/schemata/mpd-now-playable/config-v1.json" ,
"$schema" : "https://json-schema.org/draft/2020-12/schema" ,
"properties" : {
"cache" : {
"description" : "A URL describing a cache service for mpd-now-playable to use. Supported protocols are memory://, redis://, and memcached://." ,
"format" : "uri" ,
"title" : "Cache" ,
"type" : "string"
} ,
"mpd" : {
"$ref" : "#/$defs/MpdConfig"
2024-07-08 22:52:49 -04:00
} ,
"receivers" : {
"default" : [
{
"kind" : "cocoa"
}
] ,
"items" : {
"discriminator" : {
"mapping" : {
2024-07-13 04:34:53 -04:00
"cocoa" : "#/$defs/CocoaReceiverConfig" ,
"websockets" : "#/$defs/WebsocketsReceiverConfig"
2024-07-08 22:52:49 -04:00
} ,
"propertyName" : "kind"
} ,
"oneOf" : [
{
"$ref" : "#/$defs/CocoaReceiverConfig"
2024-07-13 04:34:53 -04:00
} ,
{
"$ref" : "#/$defs/WebsocketsReceiverConfig"
2024-07-08 22:52:49 -04:00
}
]
} ,
"title" : "Receivers" ,
"type" : "array"
2024-06-30 10:10:17 -04:00
}
} ,
"title" : "Config" ,
2024-06-22 04:19:39 -04:00
"type" : "object"
}