diff --git a/modulecheck/crossAppSharedConfig.json b/modulecheck/crossAppSharedConfig.json index 6d8f163c3a3375cc1e696c6cdc770e46587854bd..92b18fddae2a7a7515c3581dd11a5e26afb4981b 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 fdd0dfae80bfa741d5ef80d3efd45437ffa1d7ee..39b10b67bf2d6746cf8fe4978c7cf1fb5a487dac 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": [