Skip to content

Commit

Permalink
Fix validation error on hia_coin
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Nov 24, 2024
1 parent 4dccdbe commit d1726ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genshin/models/zzz/chronicle/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ZZZStats(APIModel):
shiyu_defense_frontiers: int = Aliased("cur_period_zone_layer_count")
bangboo_obtained: int = Aliased("buddy_num")
achievement_count: int
hia_coin: HIACoin
hia_coin: HIACoin = Aliased("commemorative_coins_list")

@pydantic.field_validator("hia_coin", mode="before")
def __unnest_hia_coin(cls, v: typing.List[typing.Dict[str, typing.Any]]) -> typing.Dict[str, typing.Any]:
Expand Down

0 comments on commit d1726ca

Please sign in to comment.