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