Skip to content

Commit

Permalink
fix: Fix missing alias in voice_actors field of CharacterInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Jan 6, 2024
1 parent 11d3f17 commit 0449d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yatta/models/character.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ class VoiceActor(BaseModel):
class CharacterInfo(BaseModel):
faction: Optional[str]
description: str
voice_actors: List[VoiceActor]
voice_actors: List[VoiceActor] = Field(alias="cv")

@field_validator("voice_actors", mode="before")
def _convert_voice_actors(cls, v: Optional[Dict[str, str]]) -> List[VoiceActor]:
Expand Down

0 comments on commit 0449d62

Please sign in to comment.