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