You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: schema/workflow.yaml
+34-20Lines changed: 34 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,11 @@ properties:
53
53
extensions:
54
54
type: array
55
55
items:
56
-
$ref: '#/$defs/extension'
56
+
type: object
57
+
minProperties: 1
58
+
maxProperties: 1
59
+
additionalProperties:
60
+
$ref: '#/$defs/extension'
57
61
description: The workflow's extensions.
58
62
functions:
59
63
type: object
@@ -75,7 +79,11 @@ properties:
75
79
type: array
76
80
minItems: 1
77
81
items:
78
-
$ref: '#/$defs/task'
82
+
type: object
83
+
minProperties: 1
84
+
maxProperties: 1
85
+
additionalProperties:
86
+
$ref: '#/$defs/task'
79
87
description: Defines the tasks the workflow must perform
80
88
timeout:
81
89
$ref: '#/$defs/timeout'
@@ -103,9 +111,6 @@ $defs:
103
111
task:
104
112
type: object
105
113
properties:
106
-
name:
107
-
type: string
108
-
description: The task's name. **SHOULD** be unique within an array. Required if you want to reference the task in `then`.
109
114
input:
110
115
$ref: '#/$defs/input'
111
116
description: Configure the task's input.
@@ -286,7 +291,11 @@ $defs:
286
291
type: array
287
292
minItems: 2
288
293
items:
289
-
$ref: '#/$defs/task'
294
+
type: object
295
+
minProperties: 1
296
+
maxProperties: 1
297
+
additionalProperties:
298
+
$ref: '#/$defs/task'
290
299
description: A list of the tasks to perform concurrently.
291
300
compete:
292
301
type: boolean
@@ -297,7 +306,11 @@ $defs:
297
306
type: array
298
307
minItems: 2
299
308
items:
300
-
$ref: '#/$defs/task'
309
+
type: object
310
+
minProperties: 1
311
+
maxProperties: 1
312
+
additionalProperties:
313
+
$ref: '#/$defs/task'
301
314
description: A list of the tasks to perform sequentially.
302
315
required: [ sequentially ]
303
316
description: Configures the task execution strategy to use
@@ -506,16 +519,20 @@ $defs:
506
519
minItems: 1
507
520
items:
508
521
type: object
509
-
properties:
510
-
name:
511
-
type: string
512
-
description: The case's name.
513
-
when:
514
-
type: string
515
-
description: A runtime expression used to determine whether or not the case matches.
516
-
then:
517
-
$ref: '#/$defs/flowDirective'
518
-
description: The flow directive to execute when the case matches.
522
+
minProperties: 1
523
+
maxProperties: 1
524
+
additionalProperties:
525
+
type: object
526
+
properties:
527
+
name:
528
+
type: string
529
+
description: The case's name.
530
+
when:
531
+
type: string
532
+
description: A runtime expression used to determine whether or not the case matches.
533
+
then:
534
+
$ref: '#/$defs/flowDirective'
535
+
description: The flow directive to execute when the case matches.
519
536
required: [ switch ]
520
537
description: Enables conditional branching within workflows, allowing them to dynamically select different paths based on specified conditions or criteria
521
538
tryTask:
@@ -758,9 +775,6 @@ $defs:
758
775
extension:
759
776
type: object
760
777
properties:
761
-
name:
762
-
type: string
763
-
description: The extension's name.
764
778
extend:
765
779
type: string
766
780
enum: [ call, composite, emit, for, listen, raise, run, set, switch, try, wait, all ]
0 commit comments