mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 16:50:02 +02:00
adds "name" key-value pair to DataService serialization
This commit is contained in:
parent
883ec6d6ae
commit
ccc53c395e
@ -204,6 +204,7 @@ class Serializer:
|
|||||||
readonly = False
|
readonly = False
|
||||||
doc = get_attribute_doc(obj)
|
doc = get_attribute_doc(obj)
|
||||||
obj_type = "DataService"
|
obj_type = "DataService"
|
||||||
|
obj_name = obj.__class__.__name__
|
||||||
|
|
||||||
# Get component base class if any
|
# Get component base class if any
|
||||||
component_base_cls = next(
|
component_base_cls = next(
|
||||||
@ -252,6 +253,7 @@ class Serializer:
|
|||||||
value[key]["doc"] = get_attribute_doc(prop) # overwrite the doc
|
value[key]["doc"] = get_attribute_doc(prop) # overwrite the doc
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
"name": obj_name,
|
||||||
"type": obj_type,
|
"type": obj_type,
|
||||||
"value": value,
|
"value": value,
|
||||||
"readonly": readonly,
|
"readonly": readonly,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user