mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-15 22:58:40 +01:00
feat(api): enforce API v1 security from the spec and harden problem responses
This commit is contained in:
parent
71c379ff44
commit
3e645959f8
13 changed files with 918 additions and 34 deletions
|
|
@ -23,11 +23,20 @@ properties:
|
|||
enum:
|
||||
- validation
|
||||
- unauthorized
|
||||
- token_expired
|
||||
- forbidden
|
||||
- insufficient_scope
|
||||
- not_found
|
||||
- method_not_allowed
|
||||
- setup_complete
|
||||
- password_managed_externally
|
||||
- payload_too_large
|
||||
- rate_limited
|
||||
- unavailable
|
||||
- internal
|
||||
referenceId:
|
||||
type: string
|
||||
description: Present on internal errors. Quote it when reporting a problem; it tags the server's log lines for this request.
|
||||
errors:
|
||||
type: array
|
||||
description: Per-field failures. Present only when `code` is `validation`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue