-
Notifications
You must be signed in to change notification settings - Fork 975
Open
Labels
Description
Is your feature request related to a problem? Please describe.
- Working with raw JSON response objects/dictionaries is tedious.
- No concrete information about the type and structure of any particular response. One has to refer to the official Spotify API documentation.
Describe the solution you'd like
All the responses can be represented as Pydantic models. https://docs.pydantic.dev/latest/
- Enables better developer experience (integrates well with IDEs)
- Strong type checking (and validation!)
Describe alternatives you've considered
I've used Pydantic before, so biased towards the tool. There might be other options, but the core feature request stays the same -- well-structured and validated python objects in favour of raw JSON responses.
Additional context
This can be thought of as a more rigorous version of #695.
Reactions are currently unavailable