sonda/internal/api/openapi
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi acede4bd91 fix(settings): strict body, deleted-account race, doc wording
- PATCH /me/settings accepts exactly one JSON object: text after it, null, a
  differently cased name or an unknown name are refused (400) and change nothing.
- A user deleted between the read and the write of the settings gives 401, not a
  500, on PostgreSQL too (foreign key violation mapped to user not found).
- The spec says a 401 can also mean the account no longer exists, and that the
  body is strict.
- README no longer says more than the setting does.
- Tests: strict body cases, tokens of a deleted account on GET and PATCH,
  recognising a foreign key violation on both databases.
2026-11-11 19:20:42 +01:00
..
openapi.go feat(api): OpenAPI spec and an offline Swagger UI 2026-11-11 14:35:16 +01:00
openapi.yaml fix(settings): strict body, deleted-account race, doc wording 2026-11-11 19:20:42 +01:00