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]]]
|
artists: List[Dict[str, Union[Dict[str, str], str]]]
|
||||||
available_markets: List[str]
|
available_markets: Optional[List[str]]
|
||||||
disc_number: int
|
disc_number: int
|
||||||
duration_ms: int
|
duration_ms: int
|
||||||
explicit: bool
|
explicit: bool
|
||||||
@ -28,7 +28,7 @@ class SimplifiedTrack(BaseModel):
|
|||||||
linked_from: Optional[str]
|
linked_from: Optional[str]
|
||||||
name: str
|
name: str
|
||||||
preview_url: Optional[str]
|
preview_url: Optional[str]
|
||||||
restrictions: Optional[str]
|
restrictions: Optional[Union[str, Dict[str, str]]]
|
||||||
track_number: int
|
track_number: int
|
||||||
spotify_type: str = Field(alias="type")
|
spotify_type: str = Field(alias="type")
|
||||||
uri: str
|
uri: str
|
||||||
|
Loading…
Reference in New Issue
Block a user