加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
menu.json 3.37 KB
一键复制 编辑 原始数据 按行查看 历史
田岚清 提交于 2024-04-08 12:02 . update menu.json.
{
"title": "JSON schema for menu.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": true,
"propertyNames": {
"enum": [
"fileContextMenu"
]
},
"properties": {
"fileContextMenu": {
"description": "Indicates the name of the fileContextMenu.",
"type": "array",
"minItems": 1,
"maxItems": 5,
"uniqueItems": true,
"items": {
"type": "object",
"required": [
"abilityName",
"menuItem",
"menuHandler",
"menuContext"
],
"propertyNames": {
"enum": [
"abilityName",
"menuItem",
"menuHandler",
"menuContext"
]
},
"properties": {
"abilityName": {
"description": "Indicates the name of the ability.",
"type": "string",
"pattern": "^[0-9a-zA-Z_.]*$",
"maxLength": 255
},
"menuItem": {
"description": "Indicates the name of the menuItem.",
"type": "string",
"maxLength": 255,
"pattern": "^[$]string:[0-9a-zA-Z_.]+|(?=.*[{])(?=.*[}])[0-9a-zA-Z_.{}]+$"
},
"menuHandler": {
"description": "Indicates the name of the menuHandler.",
"type": "string",
"pattern": "^[0-9a-zA-Z_.]*$",
"maxLength": 255
},
"menuContext": {
"description": "Indicates the name of the menuContext.",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "object",
"required": [
"menuKind"
],
"propertyNames": {
"enum": [
"menuKind",
"menuRule",
"fileSupportType",
"fileNotSupportType"
]
},
"properties": {
"menuKind": {
"description": "Indicates the name of the menuKind.",
"type": "integer",
"enum": [
0,
1,
2,
3
]
},
"menuRule": {
"description": "Indicates the name of the menuRule.",
"type": "string",
"enum": [
"single",
"multi",
"both"
]
},
"fileSupportType": {
"description": "Indicates the name of the fileSupportType.",
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^\\.[a-zA-Z]+|\\*$",
"maxLength": 20
}
},
"fileNotSupportType": {
"description": "Indicates the name of the fileNotSupportType.",
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^\\.[a-zA-Z]+$",
"maxLength": 20
}
}
}
}
}
}
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化