Skip to content

Commit 5cd2ac3

Browse files
committed
fixed serialization of pydantic urls
1 parent 1ed17ad commit 5cd2ac3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

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

2525
import orjson
26-
from pydantic import NameEmail, SecretBytes, SecretStr
26+
from pydantic import AnyUrl, NameEmail, SecretBytes, SecretStr
2727
from pydantic_extra_types.color import Color
2828

2929

@@ -85,6 +85,7 @@ def decimal_encoder(dec_value: Decimal) -> int | float:
8585
SecretStr: str,
8686
set: list,
8787
UUID: str,
88+
AnyUrl: str,
8889
}
8990

9091

0 commit comments

Comments
 (0)