diff --git a/modulecheck/module.json b/modulecheck/module.json index db97db4b88304f6aaeeb390f2a387479e010f366..19324e9c552e5dee9eb8ccfca057804d6a0cc278 100644 --- a/modulecheck/module.json +++ b/modulecheck/module.json @@ -123,6 +123,7 @@ "virtualMachine", "uiSyntax", "pages", + "systemTheme", "metadata", "abilities", "extensionAbilities", @@ -294,6 +295,12 @@ "pattern": "^[$]profile:[0-9a-zA-Z_.]+$", "maxLength": 255 }, + "systemTheme": { + "description": "Indicates the system theme of the module. The value is the index to the theme config file.", + "type": "string", + "pattern": "^[$]profile:theme_config[0-9a-zA-Z_.]+$", + "maxLength": 255 + }, "metadata": { "description": "Indicates the metadata of the module.", "type": "array", diff --git a/modulecheck/themeConfig.json b/modulecheck/themeConfig.json new file mode 100644 index 0000000000000000000000000000000000000000..e265d97104cdb8a6cd6cd6fee18a0550b9520c79 --- /dev/null +++ b/modulecheck/themeConfig.json @@ -0,0 +1,23 @@ +{ + "title": "JSON schema for theme-config.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "additionalProperties": true, + "required": [ + ], + "propertyNames": { + "enum": [ + "systemTheme" + ] + }, + "properties": { + "systemTheme": { + "description": "Indicates the system theme of the module.", + "type": "string", + "enum": [ + "theme.ohos", + "theme.hmos" + ] + } + } +}