adds "name" key-value pair to DataService serialization

This commit is contained in:
Mose Müller 2024-02-27 08:13:09 +01:00
parent 883ec6d6ae
commit ccc53c395e

View File

@ -204,6 +204,7 @@ class Serializer:
readonly = False
doc = get_attribute_doc(obj)
obj_type = "DataService"
obj_name = obj.__class__.__name__
# Get component base class if any
component_base_cls = next(
@ -252,6 +253,7 @@ class Serializer:
value[key]["doc"] = get_attribute_doc(prop) # overwrite the doc
return {
"name": obj_name,
"type": obj_type,
"value": value,
"readonly": readonly,