fix model validation crash when encountering meta in album.

pull/8/head
Xie, Tianshi 6 months ago
parent 0f2e507190
commit ad8f567572
  1. 11
      src/models/album_meta.py

@ -148,12 +148,21 @@ class Relationships(BaseModel):
record_labels: RecordLabels = Field(..., alias='record-labels') record_labels: RecordLabels = Field(..., alias='record-labels')
class ContentVersion(BaseModel):
MZ_INDEXER: Optional[int] = None
RTCI: Optional[int] = None
class Meta(BaseModel):
contentVersion: ContentVersion
class Datum(BaseModel): class Datum(BaseModel):
id: Optional[str] = None id: Optional[str] = None
type: Optional[str] = None type: Optional[str] = None
href: Optional[str] = None href: Optional[str] = None
attributes: Attributes attributes: Attributes
relationships: Relationships meta: Meta
class AlbumMeta(BaseModel): class AlbumMeta(BaseModel):

Loading…
Cancel
Save