Skip to content

Commit a975225

Browse files
authored
Fix: Phrase API returns int, but typings expect string (#26)
1 parent 2c5ae24 commit a975225

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

phrasetms_client/models/term_base_reference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def from_dict(cls, obj: dict) -> TermBaseReference:
6767

6868
_obj = TermBaseReference.parse_obj({
6969
"name": obj.get("name"),
70-
"id": obj.get("id"),
70+
"id": str(obj.get("id")),
7171
"uid": obj.get("uid")
7272
})
7373
return _obj

0 commit comments

Comments
 (0)