2 Star 0 Fork 1

SuperIDE/sdp-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
sdp-schemas-manifest.json 4.31 KB
一键复制 编辑 原始数据 按行查看 历史
ywt 提交于 2023-03-08 15:51 . first commit
{
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"product-name",
"version",
"hardware",
"software",
"tools"
],
"properties": {
"product-name": {
"title": "Type: String",
"description": "The name of the application.",
"type": "string",
"minLength": 1
},
"version": {
"title": "Type: String",
"description": "The version of the application. Example: 1.0.0",
"type": "string"
},
"hardware": {
"title":"Type: Object",
"description": "The hardware list.",
"type": "object",
"required": ["main-board", "devices"],
"properties": {
"main-board": {
"title":"Type: Object",
"description": "The main-board list.",
"type": "object",
"required": ["board-name", "cpu", "io"],
"properties": {
"board-name": {
"title":"Type: String",
"description": "The name of the board.",
"type": "string",
"enum": ["NUCLEO-F746ZG", "mini2410", "SBC2410", "FS2410", "YLP2410", "HSARM2410", "S3CEB2410"]
},
"cpu": {
"title":"Type: String",
"description": "The name of the cpu.",
"type": "string"
},
"io": {
"title":"Type: Array",
"description": "The list of the io.",
"type": "array"
}
},
"allOf": [
{
"if": {
"properties": {"board-name": {"const": "NUCLEO-F746ZG"}}
},
"then": {
"properties": {"cpu": {"enum": ["Cortex-M7"]}}
}
}
]
},
"devices": {
"title":"Type: Array",
"description": "The devices list.",
"type": "array",
"items": [
{"type": "string"}
],
"additionalItems":false,
"uniqueItems": true
}
}
},
"software": {
"title":"Type: Object",
"description": "The software list.",
"type": "object",
"required":["os", "bsp", "app"],
"properties": {
"os": {
"title":"Type: String",
"description": "The name of the os.",
"type": "string"
},
"bsp": {
"title":"Type: String",
"description": "The name of the bsp.",
"type": "string"
},
"app": {
"title":"Type: Array",
"description": "The app list.",
"type": "array",
"items": [
{"type": "string"}
]
}
}
},
"tools": {
"title":"Type: Object",
"description": "The tools list.",
"type": "object",
"required":["compiler", "debuger", "writer"],
"properties": {
"compiler": {
"title":"Type: String",
"description": "The name of the compiler.",
"type": "string"
},
"debuger": {
"title":"Type: String",
"description": "The name of the debuger.",
"type": "string"
},
"writer": {
"title":"Type: String",
"description": "The name of the writer.",
"type": "string"
}
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/SuperIDE/sdp-config.git
git@gitee.com:SuperIDE/sdp-config.git
SuperIDE
sdp-config
sdp-config
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385