From 4b43734b55927326eeb04e288119df26503b3fb3 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Sat, 11 Oct 2025 02:57:14 +0800 Subject: [PATCH] fix host_node test_resource error --- unilabos/registry/registry.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/unilabos/registry/registry.py b/unilabos/registry/registry.py index 3a57a4ba..2cc5dc28 100644 --- a/unilabos/registry/registry.py +++ b/unilabos/registry/registry.py @@ -159,24 +159,20 @@ class Registry: "feedback": {}, "goal": { "properties": { - "resource": { - "properties": ros_message_to_json_schema(Resource, "resource"), - "type": "object" - }, + "resource": ros_message_to_json_schema(Resource, "resource"), "resources": { "items": { "properties": ros_message_to_json_schema(Resource, "resources"), - "title": "mount_resource", "type": "object" }, "type": "array" }, "device": { - "type": "object" + "type": "string" }, "devices": { "items": { - "type": "object" + "type": "string" }, "type": "array" }, @@ -189,6 +185,12 @@ class Registry: "title": "transfer_resource_to_another参数", "type": "object", }, + "placeholder_keys": { + "device": "unilabos_devices", + "devices": "unilabos_devices", + "resource": "unilabos_resources", + "resources": "unilabos_resources", + }, "goal_default": {}, "handles": {}, },