Skip to content

Commit 443f5e3

Browse files
committed
Updated the workflow.yaml schema
1 parent 13c69b0 commit 443f5e3

File tree

1 file changed

+54
-2
lines changed

1 file changed

+54
-2
lines changed

schema/workflow.yaml

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,47 @@ properties:
3333
description: A key/value mapping of the workflow's tags, if any.
3434
additionalProperties: true
3535
required: [ dsl, namespace, name, version ]
36-
description: Documents the workflow
36+
description: Documents the workflow.
37+
use:
38+
type: object
39+
properties:
40+
authentications:
41+
type: object
42+
additionalProperties:
43+
$ref: '#/$defs/authenticationPolicy'
44+
description: The workflow's reusable authentication policies.
45+
errors:
46+
type: object
47+
additionalProperties:
48+
$ref: '#/$defs/error'
49+
description: The workflow's reusable errors.
50+
extensions:
51+
type: object
52+
additionalProperties:
53+
$ref: '#/$defs/extension'
54+
description: The workflow's extensions.
55+
functions:
56+
type: object
57+
additionalProperties:
58+
$ref: '#/$defs/function'
59+
description: The workflow's reusable functions.
60+
retries:
61+
type: object
62+
additionalProperties:
63+
$ref: '#/$defs/retryPolicy'
64+
description: The workflow's reusable retry policies.
65+
secrets:
66+
type: array
67+
items:
68+
type: string
69+
description: The workflow's secrets.
70+
description: Defines the workflow's reusable components.
3771
do:
3872
type: object
3973
minProperties: 1
4074
additionalProperties:
4175
$ref: '#/$defs/task'
42-
description: Defines the tasks the workflow must perform
76+
description: Defines the tasks the workflow must perform.
4377
$defs:
4478
task:
4579
type: object
@@ -512,6 +546,24 @@ $defs:
512546
type: string
513547
additionalProperties: true
514548
required: [ with ]
549+
extension:
550+
type: object
551+
properties:
552+
extend:
553+
type: string
554+
enum: [ call, composite, emit, for, listen, raise, run, set, switch, try, wait, all ]
555+
description: The type of task to extend.
556+
when:
557+
type: string
558+
description: A runtime expression, if any, used to determine whether or not the extension should apply in the specified context.
559+
before:
560+
$ref: '#/$defs/task'
561+
description: The task to execute before the extended task, if any.
562+
after:
563+
$ref: '#/$defs/task'
564+
description: The task to execute after the extended task, if any.
565+
required: [ extend ]
566+
description: The definition of a an extension.
515567
externalResource:
516568
type: object
517569
properties:

0 commit comments

Comments
 (0)