Skip to content

Commit

Permalink
Allow nicknumber to be -1 in rare cases
Browse files Browse the repository at this point in the history
  • Loading branch information
thesadru committed Dec 30, 2023
1 parent 9fe7dec commit 9408c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arkprts/models/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Status(base.BaseModel):

nickname: str = pydantic.Field(alias="nickName")
"""Player nickname."""
nick_number: str = pydantic.Field(alias="nickNumber")
nick_number: typing.Annotated[str, pydantic.PlainValidator(str)] = pydantic.Field(alias="nickNumber")
"""Player nickname number after #."""
level: int
"""Player level."""
Expand Down

0 comments on commit 9408c83

Please sign in to comment.