From 02d48cf1844c32591c6fc5f410a4c9b0a2928073 Mon Sep 17 00:00:00 2001 From: Axi_Beft Date: Thu, 26 Jun 2025 21:55:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=85=B1=E4=BA=AB=E6=94=AF?= =?UTF-8?q?=E6=8C=81har=E5=92=8Cshared=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Axi_Beft --- modulecheck/crossAppSharedConfig.json | 6 +++--- modulecheck/module.json | 14 ++++++++------ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/modulecheck/crossAppSharedConfig.json b/modulecheck/crossAppSharedConfig.json index 6d8f163c..92b18fdd 100644 --- a/modulecheck/crossAppSharedConfig.json +++ b/modulecheck/crossAppSharedConfig.json @@ -2,7 +2,7 @@ "title": "JSON schema for crossAppSharedConfig.json", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", - "additionalProperties": true, + "additionalProperties": false, "propertyNames": { "enum": [ "crossAppSharedConfig" @@ -12,7 +12,7 @@ "crossAppSharedConfig": { "type": "array", "maxItems": 32, - "additionalProperties": true, + "additionalProperties": false, "uniqueItems": true, "items": { "type": "object", @@ -27,7 +27,7 @@ "uri": { "description": "Indicates the key for shared configuration.", "type": "string", - "pattern": "^datashareproxy://", + "pattern": "^datashareproxy://(?:[a-zA-Z](?:\\w*[0-9a-zA-Z])?)(?:\\.[0-9a-zA-Z](?:\\w*[0-9a-zA-Z])?){2,}$", "maxLength": 256 }, "value": { diff --git a/modulecheck/module.json b/modulecheck/module.json index fdd0dfae..39b10b67 100644 --- a/modulecheck/module.json +++ b/modulecheck/module.json @@ -51,7 +51,8 @@ "targetPriority", "generateBuildHash", "routerMap", - "appStartup" + "appStartup", + "crossAppSharedConfig" ] }, "required": [ @@ -93,7 +94,8 @@ "dependencies", "libIsolation", "routerMap", - "appStartup" + "appStartup", + "crossAppSharedConfig" ] }, "required": [ @@ -145,13 +147,13 @@ "generateBuildHash", "isolationMode", "proxyData", - "crossAppSharedConfig", "fileContextMenu", "querySchemes", "routerMap", "appEnvironments", "appStartup", - "hnpPackages" + "hnpPackages", + "crossAppSharedConfig" ] }, "required": [ @@ -203,10 +205,10 @@ "generateBuildHash", "isolationMode", "proxyData", - "crossAppSharedConfig", "routerMap", "appEnvironments", - "appStartup" + "appStartup", + "crossAppSharedConfig" ] }, "required": [ -- Gitee