mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-03-02 22:57:43 -05:00
API schema case type inconsistancies #5287
Labels
No labels
1%
blocked-by: skyhook
bug
connection
discussion
docs
download-client
enhancement
external-bug
indexer
missing-description
mono-bug
naming
needs-to-be-tested
needs-triage
one-day-maybe
parsing
platform: linux
platform: macos
platform: windows
priority:high
priority:low
priority:medium
priority:medium
proposal
skyhook/services
suboptimal
support
task
ui-only
up-for-grabs
v3
v4
waiting-for-contributor
waiting-for-info
wip
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Sonarr#5287
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CPU-Blanc on GitHub (Nov 17, 2024).
Is there an existing issue for this?
Current Behavior
I've been working with the API lately in Rust and came across some issues with some of the API schema not being consistent with what case type they are using. For the most part, all fields are using camelCase, however, I have found in
QueueResource, the fieldstimeleftandsizeleftare simply all lowercase. This causes issues when trying to deserialise the data into a Rust struct as it is expecting camel case.Expected Behavior
Case types across the API/schema should be consistent: ie all camelCase
Steps To Reproduce
GETrequest to/api/v3/queuewhile items are theretimeleft&sizeleftare not camel case whereas all other fields are in the response bodyEnvironment
What branch are you running?
Main
Trace Logs?
N/A
Anything else?
Logs from the http response from

GETto/api/v3/queue, indicatingsizeleftis lowercase, whereas all others are camel.timeleftappears to also be effected looking at the API docs