ynput / ayon-python-api

Apache License 2.0
9 stars 4 forks source link

Method `get_representation_hierarchy` is returning data key as json dump #178

Closed jakubjezek001 closed 1 month ago

jakubjezek001 commented 1 month ago

Is there an existing issue for this?

Current Behavior:

Method get_representation_hierarchy is returning data key as json dump.

Expected Behavior:

Data key should be dictionary.

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

Query Representation by ID in following way and then check the representation enity on data key type.

repre_hierarchy = get_representation_hierarchy( project_name=self._project_name, representation_id=representation_data["id"], project_fields=["name"], version_fields=VERSION_FIELDS, product_fields=PRODUCT_FIELDS, task_fields=TASK_FIELDS, ) version_entity = repre_hierarchy.version product_entity = repre_hierarchy.product representation_entity = repre_hierarchy.representation

print(type(representation_entity["data"]))

Are there any labels you wish to add?

Relevant log output:

No response

Additional context:

No response