quintodrome/server/subsonic/responses/.snapshots
Matthew Simpson 9ab0c2dc67
feat: new "Subsonic Minimal Clients" configuration option (#4850)
* Add `.editorconfig` file

Hints to users how to properly indent Go files (my setup was defaulting
to 2 spaces).

* Add Subsonic API minimal config option

This will allow users to specify clients which can operate with or need
the minimum required fields as per the [SubSonic API
spec](https://subsonic.org/pages/api.jsp).

* Return only required fields for Child Objects

For a minimal client, only return the required fields for Child Objects.

* Return only required fields for Playlist objects

* refactor: simplify client list checks and improve playlist response handling

Signed-off-by: Deluan <deluan@navidrome.org>

* test: add unit tests for client list checks and playlist building logic

Signed-off-by: Deluan <deluan@navidrome.org>

* fix: revert Child.IsVideo and Playlist.Public fields from pointer to boolean, and add omitempty to XML tag

Signed-off-by: Deluan <deluan@navidrome.org>

---------

Signed-off-by: Deluan <deluan@navidrome.org>
Co-authored-by: Deluan Quintão <deluan@navidrome.org>
2026-01-16 05:55:21 -05:00
..
Responses AlbumInfo with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumInfo with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumInfo without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumInfo without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumList with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses AlbumList with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses AlbumList with OS data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses AlbumList with OS data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses AlbumList without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumList without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumWithSongsID3 with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses AlbumWithSongsID3 with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses AlbumWithSongsID3 without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumWithSongsID3 without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumWithSongsID3 without data should match OpenSubsonic .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumWithSongsID3 without data should match OpenSubsonic .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Artist with data and MBID and Sort Name should match .JSON feat(bfr): Big Refactor: new scanner, lots of new fields and tags, improvements and DB schema changes (#2709) 2025-02-19 20:35:17 -05:00
Responses Artist with data and MBID and Sort Name should match .XML feat(bfr): Big Refactor: new scanner, lots of new fields and tags, improvements and DB schema changes (#2709) 2025-02-19 20:35:17 -05:00
Responses Artist with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Artist with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Artist with OpenSubsonic data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Artist with OpenSubsonic data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Artist without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Artist without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses ArtistInfo with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses ArtistInfo with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses ArtistInfo without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses ArtistInfo without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Bookmarks with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Bookmarks with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Bookmarks without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Bookmarks without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Child with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Child with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Child without data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Child without data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Child without data should match OpenSubsonic .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Child without data should match OpenSubsonic .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Directory with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Directory with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Directory without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Directory without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses EmptyResponse should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses EmptyResponse should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Genres with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Genres with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Genres without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Genres without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Indexes with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Indexes with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Indexes without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Indexes without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses InternetRadioStations with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses InternetRadioStations with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses InternetRadioStations without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses InternetRadioStations without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses License should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses License should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Lyrics with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Lyrics with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Lyrics without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Lyrics without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses LyricsList with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses LyricsList with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses LyricsList without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses LyricsList without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses MusicFolders with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses MusicFolders with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses MusicFolders without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses MusicFolders without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses OpenSubsonicExtensions with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses OpenSubsonicExtensions with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses OpenSubsonicExtensions without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses OpenSubsonicExtensions without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Playlists with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Playlists with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Playlists without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Playlists without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses PlayQueue with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses PlayQueue with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses PlayQueue without data should match .JSON feat(subsonic): implement indexBasedQueue extension (#4244) 2025-11-09 12:52:05 -05:00
Responses PlayQueue without data should match .XML feat(subsonic): implement indexBasedQueue extension (#4244) 2025-11-09 12:52:05 -05:00
Responses PlayQueueByIndex with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses PlayQueueByIndex with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses PlayQueueByIndex without data should match .JSON feat(subsonic): implement indexBasedQueue extension (#4244) 2025-11-09 12:52:05 -05:00
Responses PlayQueueByIndex without data should match .XML feat(subsonic): implement indexBasedQueue extension (#4244) 2025-11-09 12:52:05 -05:00
Responses ScanStatus with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses ScanStatus with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses ScanStatus without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses ScanStatus without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Shares with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Shares with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Shares with only required fields should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Shares with only required fields should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Shares without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Shares without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses SimilarSongs with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses SimilarSongs with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses SimilarSongs without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses SimilarSongs without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses SimilarSongs2 with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses SimilarSongs2 with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses SimilarSongs2 without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses SimilarSongs2 without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses TopSongs with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses TopSongs with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses TopSongs without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses TopSongs without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses User with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses User with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses User without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses User without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Users with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Users with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Users without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Users without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00