6 Star 40 Fork 13

Ahoo-Wang/CoSec

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cosec-app-permission.schema.json 1.93 KB
一键复制 编辑 原始数据 按行查看 历史
Ahoo-Wang 提交于 2025-06-20 14:24 +08:00 . ci: update schema URLs to raw GitHub content
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/Ahoo-Wang/CoSec/refs/heads/main/schema/cosec-app-permission.schema.json",
"title": "CoSec App Permission Schema",
"type": "object",
"properties": {
"id": {
"description": "The id of the app permission",
"type": "string"
},
"condition": {
"description": "The condition of the app permission",
"$ref": "condition.schema.json"
},
"groups": {
"type": "array",
"items": {
"$ref": "#/definitions/permissionGroup"
}
}
},
"required": [
"id",
"groups"
],
"definitions": {
"permissionGroup": {
"type": "object",
"properties": {
"name": {
"description": "The name of the permission group",
"type": "string"
},
"description": {
"description": "The description of permission group",
"type": "string"
},
"permissions": {
"type": "array",
"items": {
"$ref": "#/definitions/permission"
}
}
},
"required": [
"name",
"permissions"
]
},
"permission": {
"type": "object",
"properties": {
"id": {
"description": "The id of the permission",
"type": "string"
},
"name": {
"description": "The name of the permission",
"type": "string"
},
"description": {
"description": "The description of the permission",
"type": "string"
},
"effect": {
"$ref": "definitions.schema.json#/definitions/effect",
"default": "allow"
},
"action": {
"$ref": "action.schema.json"
},
"condition": {
"$ref": "condition.schema.json"
}
},
"required": [
"id",
"name",
"action"
]
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Kotlin
1
https://gitee.com/AhooWang/CoSec.git
git@gitee.com:AhooWang/CoSec.git
AhooWang
CoSec
CoSec
main

搜索帮助