DataSource 数据源
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface DataSource {
"concept": "DataSource", // 产品概念
"name": string, // 数据源名称
"description": string, // 数据源描述
"entities": Array<Entity>, // 实体列表
}
class DataSourceTreeNode {
ConceptEnum concept; // 产品概念
String name; // 数据源名称
String description; // 数据源描述
List<EntityTreeNode> entities; // 实体列表
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/DataSource",
"definitions": {
"DataSource": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "DataSource"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"entities": {
"type": "array",
"items": {
"$ref": "#/definitions/Entity"
}
}
},
"required": [
"concept",
"name",
"description",
"entities"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "DataSource",
"name": "defaultDS",
"description": "默认数据源",
"entities": []
}
concept: DataSource
name: defaultDS
description: 默认数据源
entities: []