mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-19 19:33:46 -04:00
@@ -116,4 +116,11 @@ ohos_prebuilt_etc("restool_faq") {
|
||||
subsystem_name = "developtools"
|
||||
part_name = "global_resource_tool"
|
||||
install_enable = false
|
||||
}
|
||||
|
||||
ohos_prebuilt_etc("restool_ids_schema") {
|
||||
source = "${ids_schema_path}"
|
||||
subsystem_name = "developtools"
|
||||
part_name = "global_resource_tool"
|
||||
install_enable = false
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"title": "JSON schema for definedIds.json",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"record": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"media",
|
||||
"profile",
|
||||
"integer",
|
||||
"string",
|
||||
"strarray",
|
||||
"intarray",
|
||||
"color",
|
||||
"plural",
|
||||
"boolean",
|
||||
"pattern",
|
||||
"theme",
|
||||
"float",
|
||||
"symbol"
|
||||
]
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^0x(0[1-689a-fA-F][0-9a-fA-F]{6}|[1-9a-fA-F][0-9a-fA-F]{7})$"
|
||||
}
|
||||
},
|
||||
"required": ["type", "name", "id"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,3 +13,4 @@
|
||||
|
||||
id_defined_path = "//base/global/system_resources/systemres/main/resources/base/element/id_defined.json"
|
||||
restool_faq_path = "//developtools/global_resource_tool/restool_faq.json"
|
||||
ids_schema_path = "//developtools/global_resource_tool/id_defines.json"
|
||||
|
||||
Reference in New Issue
Block a user