diff --git a/models/head_icon.py b/models/head_icon.py index fdb02eb..342f965 100644 --- a/models/head_icon.py +++ b/models/head_icon.py @@ -1,6 +1,6 @@ from typing import List, Optional -from pydantic import BaseModel +from pydantic import BaseModel, ConfigDict class HeadIcon(BaseModel): @@ -24,6 +24,8 @@ def png(self) -> str: class ForHash(BaseModel): + model_config = ConfigDict(coerce_numbers_to_str=True, arbitrary_types_allowed=True) + Hash: str