mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-07 14:00:40 +02:00
fix: adding readonly keys to json serialization
- enums and methods didn't have that key so far
This commit is contained in:
parent
b8706f661b
commit
304f2a7d91
@ -270,6 +270,7 @@ class DataService(rpyc.Service, AbstractDataService):
|
||||
"async": asyncio.iscoroutinefunction(value),
|
||||
"parameters": parameters,
|
||||
"doc": inspect.getdoc(value),
|
||||
"readonly": True,
|
||||
"value": running_task_info,
|
||||
}
|
||||
elif isinstance(getattr(self.__class__, key, None), property):
|
||||
@ -290,6 +291,7 @@ class DataService(rpyc.Service, AbstractDataService):
|
||||
name: member.value
|
||||
for name, member in value.__class__.__members__.items()
|
||||
},
|
||||
"readonly": False,
|
||||
}
|
||||
else:
|
||||
result[key] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user