Restrictions datatype
This commit is contained in:
parent
024405f7b5
commit
766a33afdf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user