ConfigGroup 配置组
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface ConfigGroup {
"concept": "ConfigGroup", // 产品概念
"name": string, // 配置组名称
"properties": Array<ConfigProperty>, // 配置属性列表
}
class ConfigGroupTreeNode {
ConceptEnum concept; // 产品概念
String name; // 配置组名称
List<ConfigPropertyTreeNode> properties; // 配置属性列表
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/ConfigGroup",
"definitions": {
"ConfigGroup": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "ConfigGroup"
},
"name": {
"type": "string"
},
"properties": {
"type": "array",
"items": {
"$ref": "#/definitions/ConfigProperty"
}
}
},
"required": [
"concept",
"name",
"properties"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "ConfigGroup",
"name": "custom",
"properties": []
}
concept: ConfigGroup
name: custom
properties: []