Skip to content

Commit 581fdb9

Browse files
committed
fix: example and reference fixes for extensions
Signed-off-by: Armin Graf <arminhammer@gmail.com>
1 parent 6390951 commit 581fdb9

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

dsl-reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Defines the workflow's reusable components.
133133
| authentications | [`map[string, authentication]`](#authentication) | `no` | A name/value mapping of the workflow's reusable authentication policies. |
134134
| catalogs | [`map[string, catalog]`](#catalog) | `no` | A name/value mapping of the workflow's reusable resource catalogs. |
135135
| errors | [`map[string, error]`](#error) | `no` | A name/value mapping of the workflow's reusable errors. |
136-
| extensions | [`map[string, extension]`](#extension) | `no` | A list of the workflow's reusable extensions. |
136+
| extensions | [`extension[]`](#extension) | `no` | A list of the workflow's reusable extensions. |
137137
| functions | [`map[string, task]`](#task) | `no` | A name/value mapping of the workflow's reusable tasks. |
138138
| retries | [`map[string, retryPolicy]`](#retry) | `no` | A name/value mapping of the workflow's reusable retry policies. |
139139
| secrets | `string[]` | `no` | A list containing the workflow's secrets. |
@@ -2006,8 +2006,8 @@ Extensions enable the execution of tasks prior to those they extend, offering th
20062006
|----------|:----:|:--------:|-------------|
20072007
| extend | `string` | `yes` | The type of task to extend<br>Supported values are: `call`, `composite`, `emit`, `extension`, `for`, `listen`, `raise`, `run`, `set`, `switch`, `try`, `wait` and `all` |
20082008
| when | `string` | `no` | A runtime expression used to determine whether or not the extension should apply in the specified context |
2009-
| before | [`map[string, task]`](#task) | `no` | The task to execute, if any, before the extended task |
2010-
| after | [`map[string, task]`](#task) | `no` | The task to execute, if any, after the extended task |
2009+
| before | [`task[]`](#task) | `no` | The list of tasks to execute, if any, before the extended task |
2010+
| after | [`task[]`](#task) | `no` | The list of tasks to execute, if any, after the extended task |
20112011

20122012
#### Examples
20132013

dsl.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -742,24 +742,24 @@ document:
742742
version: '0.1.0'
743743
use:
744744
extensions:
745-
logging:
746-
extend: all
747-
before:
748-
- sendLog:
749-
call: http
750-
with:
751-
method: post
752-
uri: https://fake.log.collector.com
753-
body:
754-
message: "${ \"Executing task '\($task.reference)'...\" }"
755-
after:
756-
- sendLog:
757-
call: http
758-
with:
759-
method: post
760-
uri: https://fake.log.collector.com
761-
body:
762-
message: "${ \"Executed task '\($task.reference)'...\" }"
745+
- logging:
746+
extend: all
747+
before:
748+
- sendLog:
749+
call: http
750+
with:
751+
method: post
752+
uri: https://fake.log.collector.com
753+
body:
754+
message: "${ \"Executing task '\($task.reference)'...\" }"
755+
after:
756+
- sendLog:
757+
call: http
758+
with:
759+
method: post
760+
uri: https://fake.log.collector.com
761+
body:
762+
message: "${ \"Executed task '\($task.reference)'...\" }"
763763
do:
764764
- sampleTask:
765765
call: http

0 commit comments

Comments
 (0)