From 95ff4180938785004ed6ea0d334f581c99e09995 Mon Sep 17 00:00:00 2001 From: longwei Date: Tue, 1 Mar 2022 19:00:08 +0800 Subject: [PATCH] add uiSyntax for config json in har mode Signed-off-by: longwei Change-Id: Ie6c5fe098c5a6e4f50760e3ea5d9e9c22acf1000 --- configcheck/configSchema_rich.json | 129 +++++++++++++++++++++-------- 1 file changed, 93 insertions(+), 36 deletions(-) diff --git a/configcheck/configSchema_rich.json b/configcheck/configSchema_rich.json index e13dd8a8..3d7deaed 100755 --- a/configcheck/configSchema_rich.json +++ b/configcheck/configSchema_rich.json @@ -1158,7 +1158,8 @@ "srcPath", "resizeable", "entryTheme", - "distroFilter" + "distroFilter", + "uiSyntax" ] }, "properties": { @@ -3211,48 +3212,104 @@ } } } + }, + "uiSyntax": { + "description": "Indicates the syntax type of JS Component.Default is hml", + "type": "string", + "enum": [ + "hml", + "ets" + ], + "default": "hml" } }, - "if": { - "properties": { - "distro": { + "allOf": [ + { + "if": { "properties": { - "moduleType": { - "const": "feature" + "distro": { + "properties": { + "moduleType": { + "const": "feature" + } + } } } + }, + "then": { + "propertyNames": { + "enum": [ + "commonEvents", + "description", + "abilities", + "js", + "reqPermissions", + "definePermissions", + "deviceType", + "distro", + "reqCapabilities", + "metaData", + "package", + "name", + "supportedModes", + "shortcuts", + "defPermissions", + "defPermissionGroups", + "allowClassMap", + "colorMode", + "theme", + "mainAbility", + "srcPath", + "resizeable", + "entryTheme" + ] + } + } + }, + { + "if": { + "properties": { + "distro": { + "properties": { + "moduleType": { + "const": "entry" + } + } + } + } + }, + "then": { + "propertyNames": { + "enum": [ + "commonEvents", + "description", + "abilities", + "js", + "reqPermissions", + "definePermissions", + "deviceType", + "distro", + "reqCapabilities", + "metaData", + "package", + "name", + "supportedModes", + "shortcuts", + "defPermissions", + "defPermissionGroups", + "allowClassMap", + "colorMode", + "theme", + "mainAbility", + "srcPath", + "resizeable", + "entryTheme", + "distroFilter" + ] + } } } - }, - "then": { - "propertyNames": { - "enum": [ - "commonEvents", - "description", - "abilities", - "js", - "reqPermissions", - "definePermissions", - "deviceType", - "distro", - "reqCapabilities", - "metaData", - "package", - "name", - "supportedModes", - "shortcuts", - "defPermissions", - "defPermissionGroups", - "allowClassMap", - "colorMode", - "theme", - "mainAbility", - "srcPath", - "resizeable", - "entryTheme" - ] - } - } + ] } }, "if": { -- Gitee