From 07e849a7d7b597bac868db3c305c18e6c92df4b7 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Mon, 23 Jun 2025 16:07:47 +0800 Subject: [PATCH] jsonSchema fix Signed-off-by: zhangzezhong --- .../schema/FindEBicycle_1.0.2.json | 2 +- .../schema/ViewCommodity_1.0.2.json | 14 +++++++++++++- .../schema/ViewHospital_1.0.1.json | 8 ++++---- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/compiler/src/userIntents_parser/schema/FindEBicycle_1.0.2.json b/compiler/src/userIntents_parser/schema/FindEBicycle_1.0.2.json index 8138b9ad2..98205ef3b 100644 --- a/compiler/src/userIntents_parser/schema/FindEBicycle_1.0.2.json +++ b/compiler/src/userIntents_parser/schema/FindEBicycle_1.0.2.json @@ -1,7 +1,7 @@ { "intentName": "FindEBicycle", "intentVersion": "1.0.2", - "llmDescription": "寻找电动自行车", + "llmDescription": "寻找电动车", "keywords": ["FindEBicycle"], "parameters": { "type": "object", diff --git a/compiler/src/userIntents_parser/schema/ViewCommodity_1.0.2.json b/compiler/src/userIntents_parser/schema/ViewCommodity_1.0.2.json index 301629d60..0a217d0f3 100644 --- a/compiler/src/userIntents_parser/schema/ViewCommodity_1.0.2.json +++ b/compiler/src/userIntents_parser/schema/ViewCommodity_1.0.2.json @@ -22,7 +22,19 @@ "type": "string", "maxLength": 1500 } - } + }, + "oneOf": [ + { + "required": [ + "entityId" + ] + }, + { + "required": [ + "shareLink" + ] + } + ] }, "result": { "type": "object", diff --git a/compiler/src/userIntents_parser/schema/ViewHospital_1.0.1.json b/compiler/src/userIntents_parser/schema/ViewHospital_1.0.1.json index 7cb9cd464..babbb3797 100644 --- a/compiler/src/userIntents_parser/schema/ViewHospital_1.0.1.json +++ b/compiler/src/userIntents_parser/schema/ViewHospital_1.0.1.json @@ -9,9 +9,6 @@ "enum": [ "entityId" ], - "required": [ - "entityId" - ], "properties": { "entityId": { "description": "数据唯一标识", @@ -19,7 +16,10 @@ "maxLength": 64 } } - } + }, + "required": [ + "entityId" + ] }, "result": { "type": "object", -- Gitee