diff --git a/pyproject.toml b/pyproject.toml index 984063a..1eadf8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "oxidespotify" -version = "1.0.1" +version = "1.0.2" description = "Client for Spotify API" readme = "README.md" authors = [{ name = "Miwory", email = "miwory.uwu@gmail.com" }] diff --git a/src/oxidespotify/schema.py b/src/oxidespotify/schema.py index b62b387..bee3e07 100644 --- a/src/oxidespotify/schema.py +++ b/src/oxidespotify/schema.py @@ -93,8 +93,8 @@ class Paginated(BaseModel): limit: int next: HttpUrl | None offset: int = 0 - previous: HttpUrl | None - total: int + previous: HttpUrl | None = None + total: int = 0 class ExternalUrls(BaseModel): @@ -308,7 +308,7 @@ class Devices(BaseModel): class RecentlyPlayedTrack(BaseModel): track: Track played_at: datetime - context: Context + context: Context | None = None class RecentlyPlayedTracks(Paginated): @@ -344,7 +344,7 @@ class PlaylistTracks(Paginated): class SimplifiedPlaylistTracks(Paginated): href: HttpUrl - total: int + total: int = 0 class Playlist(BaseModel):