WORKFLOW_JSON_SCHEMA
const WORKFLOW_JSON_SCHEMA: object;
Defined in: packages/rxdb-plugin-trigger/src/workflow/schema.ts:112
WORKFLOW_JSON_SCHEMA - WorkflowJSON 的 JSON Schema 验证定义
用于验证工作流定义的合法性。
Type Declaration
| Name | Type | Default value | Defined in |
|---|---|---|---|
$schema | "http://json-schema.org/draft-07/schema#" | 'http://json-schema.org/draft-07/schema#' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:113 |
additionalProperties | false | false | packages/rxdb-plugin-trigger/src/workflow/schema.ts:180 |
properties | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:116 |
properties.edges | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:164 |
properties.edges.items | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:166 |
properties.edges.items.additionalProperties | false | false | packages/rxdb-plugin-trigger/src/workflow/schema.ts:176 |
properties.edges.items.properties | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:169 |
properties.edges.items.properties.condition | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:174 |
properties.edges.items.properties.condition.type | "string" | 'string' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:174 |
properties.edges.items.properties.edgeType | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:173 |
properties.edges.items.properties.edgeType.enum | readonly ["success", "failure", "always"] | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:173 |
properties.edges.items.properties.edgeType.type | "string" | 'string' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:173 |
properties.edges.items.properties.id | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:170 |
properties.edges.items.properties.id.minLength | 1 | 1 | packages/rxdb-plugin-trigger/src/workflow/schema.ts:170 |
properties.edges.items.properties.id.type | "string" | 'string' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:170 |
properties.edges.items.properties.source | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:171 |
properties.edges.items.properties.source.minLength | 1 | 1 | packages/rxdb-plugin-trigger/src/workflow/schema.ts:171 |
properties.edges.items.properties.source.type | "string" | 'string' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:171 |
properties.edges.items.properties.target | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:172 |
properties.edges.items.properties.target.minLength | 1 | 1 | packages/rxdb-plugin-trigger/src/workflow/schema.ts:172 |
properties.edges.items.properties.target.type | "string" | 'string' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:172 |
properties.edges.items.required | readonly ["id", "source", "target", "edgeType"] | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:168 |
properties.edges.items.type | "object" | 'object' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:167 |
properties.edges.type | "array" | 'array' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:165 |
properties.metadata | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:117 |
properties.metadata.additionalProperties | false | false | packages/rxdb-plugin-trigger/src/workflow/schema.ts:128 |
properties.metadata.properties | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:120 |
properties.metadata.properties.createdAt | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:125 |
properties.metadata.properties.createdAt.format | "date-time" | 'date-time' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:125 |
properties.metadata.properties.createdAt.type | "string" | 'string' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:125 |
properties.metadata.properties.description | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:122 |
properties.metadata.properties.description.type | "string" | 'string' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:122 |
properties.metadata.properties.maxFanOutConcurrency | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:124 |
properties.metadata.properties.maxFanOutConcurrency.maximum | 100 | 100 | packages/rxdb-plugin-trigger/src/workflow/schema.ts:124 |
properties.metadata.properties.maxFanOutConcurrency.minimum | 1 | 1 | packages/rxdb-plugin-trigger/src/workflow/schema.ts:124 |
properties.metadata.properties.maxFanOutConcurrency.type | "integer" | 'integer' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:124 |
properties.metadata.properties.name | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:121 |
properties.metadata.properties.name.minLength | 1 | 1 | packages/rxdb-plugin-trigger/src/workflow/schema.ts:121 |
properties.metadata.properties.name.type | "string" | 'string' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:121 |
properties.metadata.properties.updatedAt | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:126 |
properties.metadata.properties.updatedAt.format | "date-time" | 'date-time' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:126 |
properties.metadata.properties.updatedAt.type | "string" | 'string' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:126 |
properties.metadata.properties.version | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:123 |
properties.metadata.properties.version.minimum | 1 | 1 | packages/rxdb-plugin-trigger/src/workflow/schema.ts:123 |
properties.metadata.properties.version.type | "integer" | 'integer' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:123 |
properties.metadata.required | readonly ["name"] | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:119 |
properties.metadata.type | "object" | 'object' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:118 |
properties.nodes | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:130 |
properties.nodes.items | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:132 |
properties.nodes.items.additionalProperties | false | false | packages/rxdb-plugin-trigger/src/workflow/schema.ts:161 |
properties.nodes.items.properties | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:135 |
properties.nodes.items.properties.config | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:140 |
properties.nodes.items.properties.config.type | "object" | 'object' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:140 |
properties.nodes.items.properties.id | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:136 |
properties.nodes.items.properties.id.minLength | 1 | 1 | packages/rxdb-plugin-trigger/src/workflow/schema.ts:136 |
properties.nodes.items.properties.id.type | "string" | 'string' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:136 |
properties.nodes.items.properties.label | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:139 |
properties.nodes.items.properties.label.type | "string" | 'string' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:139 |
properties.nodes.items.properties.position | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:151 |
properties.nodes.items.properties.position.additionalProperties | false | false | packages/rxdb-plugin-trigger/src/workflow/schema.ts:158 |
properties.nodes.items.properties.position.properties | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:153 |
properties.nodes.items.properties.position.properties.x | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:154 |
properties.nodes.items.properties.position.properties.x.type | "number" | 'number' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:154 |
properties.nodes.items.properties.position.properties.y | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:155 |
properties.nodes.items.properties.position.properties.y.type | "number" | 'number' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:155 |
properties.nodes.items.properties.position.required | readonly ["x", "y"] | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:157 |
properties.nodes.items.properties.position.type | "object" | 'object' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:152 |
properties.nodes.items.properties.retry | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:141 |
properties.nodes.items.properties.retry.additionalProperties | false | false | packages/rxdb-plugin-trigger/src/workflow/schema.ts:149 |
properties.nodes.items.properties.retry.properties | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:143 |
properties.nodes.items.properties.retry.properties.factor | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:145 |
properties.nodes.items.properties.retry.properties.factor.minimum | 1 | 1 | packages/rxdb-plugin-trigger/src/workflow/schema.ts:145 |
properties.nodes.items.properties.retry.properties.factor.type | "number" | 'number' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:145 |
properties.nodes.items.properties.retry.properties.maxAttempts | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:144 |
properties.nodes.items.properties.retry.properties.maxAttempts.minimum | 1 | 1 | packages/rxdb-plugin-trigger/src/workflow/schema.ts:144 |
properties.nodes.items.properties.retry.properties.maxAttempts.type | "integer" | 'integer' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:144 |
properties.nodes.items.properties.retry.properties.maxTimeoutInMs | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:147 |
properties.nodes.items.properties.retry.properties.maxTimeoutInMs.minimum | 0 | 0 | packages/rxdb-plugin-trigger/src/workflow/schema.ts:147 |
properties.nodes.items.properties.retry.properties.maxTimeoutInMs.type | "integer" | 'integer' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:147 |
properties.nodes.items.properties.retry.properties.minTimeoutInMs | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:146 |
properties.nodes.items.properties.retry.properties.minTimeoutInMs.minimum | 0 | 0 | packages/rxdb-plugin-trigger/src/workflow/schema.ts:146 |
properties.nodes.items.properties.retry.properties.minTimeoutInMs.type | "integer" | 'integer' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:146 |
properties.nodes.items.properties.retry.type | "object" | 'object' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:142 |
properties.nodes.items.properties.taskId | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:138 |
properties.nodes.items.properties.taskId.type | "string" | 'string' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:138 |
properties.nodes.items.properties.type | object | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:137 |
properties.nodes.items.properties.type.enum | readonly ["task", "condition", "delay", "fan-out", "fan-in"] | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:137 |
properties.nodes.items.properties.type.type | "string" | 'string' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:137 |
properties.nodes.items.required | readonly ["id", "type"] | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:134 |
properties.nodes.items.type | "object" | 'object' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:133 |
properties.nodes.type | "array" | 'array' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:131 |
required | readonly ["metadata", "nodes", "edges"] | - | packages/rxdb-plugin-trigger/src/workflow/schema.ts:115 |
type | "object" | 'object' | packages/rxdb-plugin-trigger/src/workflow/schema.ts:114 |