Skip to content

Commit d6fc42a

Browse files
committed
Added test for composite type deserialization
Signed-off-by: chandr-andr (Kiselev Aleksandr) <chandr@chandr.net>
1 parent 5a5bc1c commit d6fc42a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/tests/test_value_converter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ class ValidateModelForCustomType(BaseModel):
394394
timestampz_: datetime.datetime
395395
uuid_: uuid.UUID
396396
inet_: IPv4Address
397-
jsonb_: Dict[str, List[Union[str, int]]]
398-
json_: Dict[str, List[Union[str, int]]]
397+
jsonb_: Dict[str, List[Union[str, int, List[str]]]]
398+
json_: Dict[str, List[Union[str, int, List[str]]]]
399399

400400
varchar_arr: List[str]
401401
text_arr: List[str]
@@ -410,8 +410,8 @@ class ValidateModelForCustomType(BaseModel):
410410
timestampz_arr: List[datetime.datetime]
411411
uuid_arr: List[uuid.UUID]
412412
inet_arr: List[IPv4Address]
413-
jsonb_arr: Dict[str, List[Union[str, int]]]
414-
json_arr: Dict[str, List[Union[str, int]]]
413+
jsonb_arr: List[Dict[str, List[Union[str, int, List[str]]]]]
414+
json_arr: List[Dict[str, List[Union[str, int, List[str]]]]]
415415

416416
class TopLevelModel(BaseModel):
417417
custom_type: ValidateModelForCustomType

0 commit comments

Comments
 (0)