Skip to content

Commit 5c05b0b

Browse files
docs: update samples in docs
Signed-off-by: Matthias Pichler <m.pichler@warrify.com>
1 parent a50dbc2 commit 5c05b0b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dsl.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ Errors are critical for both authors and runtimes as they provide a means to com
236236
*Retrying 5 times when an error with 503 is caught:*
237237
```yaml
238238
try:
239-
call: http
240-
with:
241-
method: get
242-
endpoint:
243-
uri: https://example-service.com/healthz
239+
- call: http
240+
with:
241+
method: get
242+
endpoint:
243+
uri: https://example-service.com/healthz
244244
catch:
245245
errors:
246246
with:
@@ -342,7 +342,7 @@ document:
342342
version: '0.1.0'
343343
344344
do:
345-
validateEmail:
345+
- name: validateEmail
346346
call: https://github.com/myorg/functions/validateEmailAddress@v1
347347
with:
348348
emailAddress: ${ .userEmail }
@@ -426,7 +426,7 @@ use:
426426
body:
427427
message: "${ \"Executed task '\($task.reference)'...\" }"
428428
do:
429-
get:
429+
- name: get
430430
call: http
431431
with:
432432
method: get

0 commit comments

Comments
 (0)