Skip to content

Commit

Permalink
Fixed a ValidationError when requesting a Playlist without a cover im…
Browse files Browse the repository at this point in the history
…age (#309)

* Changed type of Playlist.images to Optional[List[Image]]

* less technical bug description for better readability

* Update docs/src/release_notes.rst

Co-authored-by: Felix Hildén <felix.hilden@gmail.com>

---------

Co-authored-by: Felix Hildén <felix.hilden@gmail.com>
  • Loading branch information
Kuwertzel and felix-hilden committed Dec 20, 2023
1 parent 77ff990 commit afcf97a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/src/release_notes.rst
Expand Up @@ -3,6 +3,13 @@

Release notes
=============
Unreleased
----------
Fixed
*****
- Make ``images`` optional in :class:`Playlist <model.Playlist>`
to fix getting empty playlists without an image (#309)

5.2.1 (2023-11-22)
------------------
Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/tekore/_model/playlist.py
Expand Up @@ -76,7 +76,7 @@ class Playlist(Item):
collaborative: bool
description: Optional[str]
external_urls: dict
images: List[Image]
images: Optional[List[Image]]
name: str
owner: PublicUser
public: Optional[bool]
Expand Down

0 comments on commit afcf97a

Please sign in to comment.