We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ef386f commit 63605e6Copy full SHA for 63605e6
src/superannotate/lib/app/interface/sdk_interface.py
@@ -1645,8 +1645,7 @@ def create_annotation_classes_from_classes_json(
1645
)
1646
if response.errors:
1647
raise AppException(response.errors)
1648
-
1649
- return [i.dict() for i in response.data]
+ return [BaseSerializers(i).serialize() for i in response.data]
1650
1651
1652
@Trackable
src/superannotate/lib/app/serializers.py
@@ -15,7 +15,7 @@ def serialize(self):
15
if isinstance(self._entity, dict):
16
return self._entity
17
if isinstance(self._entity, BaseModel):
18
- return self._entity.dict()
+ return self._entity.dict(by_alias=True)
19
return self._entity.to_dict()
20
21
0 commit comments