Connector 连接器
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface Connector {
"concept": "Connector", // 产品概念
"name": string, // 连接器名称
"connectorKind": string, // connectorKind
"properties": Array<Param>, // 输入参数列表
"logics": Array<Logic>, // 逻辑列表
"triggers": Array<ConnectorTrigger>, // 连接器触发器列表
"structures": Array<Structure>, // 数据结构列表
"compilerInfoMap": Map<string, string>, // compilerInfoMap
"createLogic": undefined, // createLogic
"testConnectorLogic": undefined, // testConnectorLogic
}
class ConnectorTreeNode {
ConceptEnum concept; // 产品概念
String name; // 连接器名称
String connectorKind; // connectorKind
List<ParamTreeNode> properties; // 输入参数列表
List<LogicTreeNode> logics; // 逻辑列表
List<ConnectorTriggerTreeNode> triggers; // 连接器触发器列表
List<StructureTreeNode> structures; // 数据结构列表
Object compilerInfoMap; // compilerInfoMap
Object createLogic; // createLogic
Object testConnectorLogic; // testConnectorLogic
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/Connector",
"definitions": {
"Connector": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "Connector"
},
"name": {
"type": "string"
},
"connectorKind": {
"type": "string"
},
"properties": {
"type": "array",
"items": {
"$ref": "#/definitions/Param"
}
},
"logics": {
"type": "array",
"items": {
"$ref": "#/definitions/Logic"
}
},
"triggers": {
"type": "array",
"items": {
"$ref": "#/definitions/ConnectorTrigger"
}
},
"structures": {
"type": "array",
"items": {
"$ref": "#/definitions/Structure"
}
},
"compilerInfoMap": {
"type": "object",
"properties": {
"size": {
"type": "number"
}
},
"required": [
"size"
],
"additionalProperties": false
},
"createLogic": {
"not": {}
},
"testConnectorLogic": {
"not": {}
}
},
"required": [
"concept",
"name",
"connectorKind",
"properties",
"logics",
"triggers",
"structures",
"compilerInfoMap"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "Connector",
"name": "String",
"connectorKind": "String"
}
concept: Connector
name: String
connectorKind: String