sonda/internal/storage
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 2ae4aedac0 fix(api): make the spec say what the code does, and make the tests prove it
- fix(spec): album.artist and track.album are real nullable objects (OpenAPI
  3.0 only honours nullable next to a type); the stream documents 304 on HEAD,
  412, If-Unmodified-Since and multipart/byteranges answers
- fix(spec): passwords and idempotency keys are measured in bytes, an overlap
  between libraries is a 400, a library PATCH needs a name or a path, limit 0
  means the default, login has no format rules of its own, and the wording about
  signing out says that issued access tokens live until they expire
- fix(auth): the Bearer scheme is matched ignoring case (RFC 7235)
- fix(listening): a listen with the access token of a deleted account is a 401
  instead of a database error
- fix(docs): the docs pages answer HEAD and carry X-Frame-Options, a CSP
  frame-ancestors, nosniff and no-referrer, since people paste their token there
- test: error codes are asserted in every error case; every accepted request is
  validated against the spec too; HEAD and 3xx answers are checked by hand
  because the validator skips them; the stream Content-Type must be one the
  spec lists; a scan held mid-way proves the scan_running conflicts; null album
  and null album artist, a vanished file, multi-range, 412 and HEAD 304 are
  exercised. Verified by breaking the code and the spec on purpose
2026-11-11 14:46:28 +01:00
..
auth_test.go fix(auth): close session races found in review 2026-11-11 12:45:06 +01:00
catalog.go fix(catalog): keep albums apart, align album counts, reject bad search text 2026-11-11 13:47:31 +01:00
catalog_test.go fix(catalog): keep albums apart, align album counts, reject bad search text 2026-11-11 13:47:31 +01:00
library.go feat(catalog): add the read API for artists, albums and tracks 2026-11-11 13:43:38 +01:00
library_test.go feat(library): named media libraries managed through the API 2026-11-11 13:30:25 +01:00
listening.go fix(api): make the spec say what the code does, and make the tests prove it 2026-11-11 14:46:28 +01:00
refresh.go fix(auth): close session races found in review 2026-11-11 12:45:06 +01:00
repos_test.go fix(api): make the spec say what the code does, and make the tests prove it 2026-11-11 14:46:28 +01:00
storage.go feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
storage_test.go feat(catalog): add the read API for artists, albums and tracks 2026-11-11 13:43:38 +01:00
upgrade_test.go fix(library): make the libraries upgrade and validation robust 2026-11-11 13:34:44 +01:00
users.go fix(auth): close session races found in review 2026-11-11 12:45:06 +01:00