Skip to content

Commit e15f851

Browse files
committed
fixed serialization
1 parent 5cd2ac3 commit e15f851

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/models-library/src/models_library/utils/json_serialization.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
from uuid import UUID
2424

2525
import orjson
26-
from pydantic import AnyUrl, NameEmail, SecretBytes, SecretStr
26+
from pydantic import NameEmail, SecretBytes, SecretStr
27+
from pydantic_core import Url
2728
from pydantic_extra_types.color import Color
2829

2930

@@ -84,8 +85,8 @@ def decimal_encoder(dec_value: Decimal) -> int | float:
8485
SecretBytes: str,
8586
SecretStr: str,
8687
set: list,
88+
Url: str,
8789
UUID: str,
88-
AnyUrl: str,
8990
}
9091

9192

0 commit comments

Comments
 (0)