{ "lexicon": 1, "id": "app.rocksky.scrobble", "defs": { "main": { "type": "record", "description": "A declaration of a scrobble.", "key": "tid", "record": { "type": "object", "required": [ "title", "artist", "album", "albumArtist", "duration", "createdAt" ], "properties": { "title": { "type": "string", "description": "The title of the song.", "minLength": 1, "maxLength": 512 }, "artist": { "type": "string", "description": "The artist of the song.", "minLength": 1, "maxLength": 256 }, "albumArtist": { "type": "string", "description": "The album artist of the song.", "minLength": 1, "maxLength": 256 }, "album": { "type": "string", "description": "The album of the song.", "minLength": 1, "maxLength": 256 }, "duration": { "type": "integer", "description": "The duration of the song in seconds.", "minimum": 1 }, "trackNumber": { "type": "integer", "description": "The track number of the song in the album.", "minimum": 1 }, "discNumber": { "type": "integer", "description": "The disc number of the song in the album.", "minimum": 1 }, "releaseDate": { "type": "string", "description": "The release date of the song.", "format": "datetime" }, "year": { "type": "integer", "description": "The year the song was released." }, "genre": { "type": "string", "description": "The genre of the song.", "maxLength": 256 }, "tags": { "type": "array", "description": "The tags of the song.", "items": { "type": "string", "minLength": 1, "maxLength": 256 } }, "composer": { "type": "string", "description": "The composer of the song.", "maxLength": 256 }, "lyrics": { "type": "string", "description": "The lyrics of the song.", "maxLength": 10000 }, "copyrightMessage": { "type": "string", "description": "The copyright message of the song.", "maxLength": 256 }, "wiki": { "type": "string", "description": "Informations about the song", "maxLength": 10000 }, "albumArt": { "type": "blob", "description": "The album art of the song.", "accept": [ "image/png", "image/jpeg" ], "maxSize": 2000000 }, "albumArtUrl": { "type": "string", "description": "The URL of the album art of the song.", "format": "uri" }, "youtubeLink": { "type": "string", "description": "The YouTube link of the song.", "format": "uri" }, "spotifyLink": { "type": "string", "description": "The Spotify link of the song.", "format": "uri" }, "tidalLink": { "type": "string", "description": "The Tidal link of the song.", "format": "uri" }, "appleMusicLink": { "type": "string", "description": "The Apple Music link of the song.", "format": "uri" }, "createdAt": { "type": "string", "description": "The date when the song was created.", "format": "datetime" }, "mbid": { "type": "string", "description": "The MusicBrainz ID of the song." }, "label": { "type": "string", "description": "The label of the song.", "maxLength": 256 } } } } } }