57 lines
1.5 KiB
JSON
57 lines
1.5 KiB
JSON
![]() |
{
|
||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||
|
"anyOf": [
|
||
|
{
|
||
|
"additionalProperties": false,
|
||
|
"properties": {
|
||
|
"songs": {
|
||
|
"items": {
|
||
|
"additionalProperties": false,
|
||
|
"properties": {
|
||
|
"artist": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"title": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"required": [
|
||
|
"artist",
|
||
|
"title"
|
||
|
],
|
||
|
"type": "object"
|
||
|
},
|
||
|
"type": "array"
|
||
|
},
|
||
|
"type": {
|
||
|
"const": "success",
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"required": [
|
||
|
"songs",
|
||
|
"type"
|
||
|
],
|
||
|
"type": "object"
|
||
|
},
|
||
|
{
|
||
|
"additionalProperties": false,
|
||
|
"properties": {
|
||
|
"error": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": {
|
||
|
"const": "error",
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"required": [
|
||
|
"error",
|
||
|
"type"
|
||
|
],
|
||
|
"type": "object"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
|