Restrictions datatype

This commit is contained in:
Bradlee Speice 2024-03-02 13:42:41 -05:00
parent 024405f7b5
commit 766a33afdf

View File

@ -16,7 +16,7 @@ class SimplifiedTrack(BaseModel):
"""
artists: List[Dict[str, Union[Dict[str, str], str]]]
available_markets: List[str]
available_markets: Optional[List[str]]
disc_number: int
duration_ms: int
explicit: bool
@ -28,7 +28,7 @@ class SimplifiedTrack(BaseModel):
linked_from: Optional[str]
name: str
preview_url: Optional[str]
restrictions: Optional[str]
restrictions: Optional[Union[str, Dict[str, str]]]
track_number: int
spotify_type: str = Field(alias="type")
uri: str