From 67c5c801861a66f1c8ca8ad40573b3d1992c1c64 Mon Sep 17 00:00:00 2001 From: lanhaoyu Date: Fri, 16 May 2025 15:51:01 +0800 Subject: [PATCH] Add schema validation for the "isolationProcess" field of the sys/commonUI type UIExtension Signed-off-by: lanhaoyu --- modulecheck/module.json | 69 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/modulecheck/module.json b/modulecheck/module.json index 1714bd49..5b19409f 100644 --- a/modulecheck/module.json +++ b/modulecheck/module.json @@ -956,7 +956,8 @@ "metadata", "extensionProcessMode", "dataGroupIds", - "process" + "process", + "isolationProcess" ] } } @@ -1015,6 +1016,67 @@ "metadata", "extensionProcessMode", "dataGroupIds", + "appIdentifierAllowList", + "isolationProcess" + ] + } + } + }, + { + "if": { + "properties": { + "type": { + "const": "sys/commonUI" + } + } + }, + "then": { + "propertyNames": { + "enum": [ + "priority", + "name", + "srcEntrance", + "srcEntry", + "icon", + "label", + "description", + "type", + "permissions", + "uri", + "readPermission", + "writePermission", + "visible", + "exported", + "skills", + "metadata", + "extensionProcessMode", + "dataGroupIds", + "isolationProcess" + ] + } + }, + "else": { + "propertyNames": { + "enum": [ + "priority", + "name", + "srcEntrance", + "srcEntry", + "icon", + "label", + "description", + "type", + "permissions", + "uri", + "readPermission", + "writePermission", + "visible", + "exported", + "skills", + "metadata", + "extensionProcessMode", + "dataGroupIds", + "process", "appIdentifierAllowList" ] } @@ -1352,6 +1414,11 @@ "type": "string", "maxLength": 31, "pattern": "^[:][0-9a-zA-Z_]+$" + }, + "isolationProcess": { + "description": "Specifies whether the ability can run in an independent process", + "type": "boolean", + "default": false } }, "if": { -- Gitee