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