Skip to content

Commit

Permalink
Fix YggdrasilTextures model
Browse files Browse the repository at this point in the history
  • Loading branch information
SerinaNya committed Feb 3, 2023
1 parent b502bd5 commit 76457f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "yggdrasil-mc"
version = "0.1b2"
version = "0.1b3"
authors = [
{ name="Xiao_Jin", email="i@xiaojin233.cn" },
]
Expand Down
6 changes: 3 additions & 3 deletions src/yggdrasil_mc/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from datetime import date
from typing import Literal

from pydantic import BaseModel, root_validator
from pydantic import BaseModel, Field, root_validator


class YggdrasilPlayerUuidApi(BaseModel):
Expand Down Expand Up @@ -39,8 +39,8 @@ class _Cape(BaseModel):

root_validator(pre=True, allow_reuse=True)(_make_hash)

skin: _Skin | None = _Skin()
cape: _Cape | None = _Cape()
skin: _Skin = Field(default_factory=_Skin, alias="SKIN")
cape: _Cape = Field(default_factory=_Cape, alias="CAPE")


class YggdrasilPropertiesTextures(BaseModel):
Expand Down

0 comments on commit 76457f3

Please sign in to comment.