mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[GH-ISSUE #225] Recommendations endpoint: unknown variant ARTIST, expected one of artist, track, genre #73
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#73
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 @marioortizmanero on GitHub (Jul 14, 2021).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/225
Originally assigned to: @marioortizmanero on GitHub.
Describe the bug
RecommendationsSeedType fails to parse from JSON because its value is upper cased for some queries
To Reproduce
Steps to reproduce the behavior:
cargo test --features=env-file,cli -- --ignored test_recommendations --nocaptureExpected behavior
It should serialize the field properly
Log/Output data
Full log
@marioortizmanero commented on GitHub (Jul 14, 2021):
This is fixed by just using
#[serde(rename_all = "UPPERCASE")]AFAIK, but it still weirds me out that it's in upper case. Not sure if it should just be case insensitive.