diff --git a/npps4/data/schema.py b/npps4/data/schema.py index ef109c2..efdac9d 100644 --- a/npps4/data/schema.py +++ b/npps4/data/schema.py @@ -197,7 +197,9 @@ def exchange_item_id(self) -> int: class SerializedServerData(pydantic.BaseModel): - json_schema_link: pydantic.json_schema.SkipJsonSchema[str | None] = pydantic.Field(default=None, alias="$schema") + json_schema_link: pydantic.json_schema.SkipJsonSchema[str | None] = pydantic.Field( + default=None, validation_alias="$schema", serialization_alias="$schema" + ) badwords: list[pydantic.Base64UrlStr] achievement_reward: list[AchievementReward] live_unit_drop_chance: LiveUnitDropChance