From 6e28b2f74d7f1b346efcb28910d4f8f5feadd792 Mon Sep 17 00:00:00 2001 From: Armin Graf Date: Thu, 11 Dec 2025 23:20:23 -0500 Subject: [PATCH 1/2] fix: example and reference fixes for extensions Signed-off-by: Armin Graf --- dsl-reference.md | 6 +++--- dsl.md | 36 ++++++++++++++++++------------------ 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/dsl-reference.md b/dsl-reference.md index 71dfe1af..5bf9556d 100644 --- a/dsl-reference.md +++ b/dsl-reference.md @@ -133,7 +133,7 @@ Defines the workflow's reusable components. | authentications | [`map[string, authentication]`](#authentication) | `no` | A name/value mapping of the workflow's reusable authentication policies. | | catalogs | [`map[string, catalog]`](#catalog) | `no` | A name/value mapping of the workflow's reusable resource catalogs. | | errors | [`map[string, error]`](#error) | `no` | A name/value mapping of the workflow's reusable errors. | -| extensions | [`map[string, extension]`](#extension) | `no` | A list of the workflow's reusable extensions. | +| extensions | [`extension[]`](#extension) | `no` | A list of the workflow's reusable extensions. | | functions | [`map[string, task]`](#task) | `no` | A name/value mapping of the workflow's reusable tasks. | | retries | [`map[string, retryPolicy]`](#retry) | `no` | A name/value mapping of the workflow's reusable retry policies. | | 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 |----------|:----:|:--------:|-------------| | extend | `string` | `yes` | The type of task to extend
Supported values are: `call`, `composite`, `emit`, `extension`, `for`, `listen`, `raise`, `run`, `set`, `switch`, `try`, `wait` and `all` | | when | `string` | `no` | A runtime expression used to determine whether or not the extension should apply in the specified context | -| before | [`map[string, task]`](#task) | `no` | The task to execute, if any, before the extended task | -| after | [`map[string, task]`](#task) | `no` | The task to execute, if any, after the extended task | +| before | [`task[]`](#task) | `no` | The list of tasks to execute, if any, before the extended task | +| after | [`task[]`](#task) | `no` | The list of tasks to execute, if any, after the extended task | #### Examples diff --git a/dsl.md b/dsl.md index a133f5ab..7ca88a90 100644 --- a/dsl.md +++ b/dsl.md @@ -742,24 +742,24 @@ document: version: '0.1.0' use: extensions: - logging: - extend: all - before: - - sendLog: - call: http - with: - method: post - uri: https://fake.log.collector.com - body: - message: "${ \"Executing task '\($task.reference)'...\" }" - after: - - sendLog: - call: http - with: - method: post - uri: https://fake.log.collector.com - body: - message: "${ \"Executed task '\($task.reference)'...\" }" + - logging: + extend: all + before: + - sendLog: + call: http + with: + method: post + uri: https://fake.log.collector.com + body: + message: "${ \"Executing task '\($task.reference)'...\" }" + after: + - sendLog: + call: http + with: + method: post + uri: https://fake.log.collector.com + body: + message: "${ \"Executed task '\($task.reference)'...\" }" do: - sampleTask: call: http From eda3d57b81f0184e925a97494256fa0485aa5ced Mon Sep 17 00:00:00 2001 From: Armin Graf Date: Fri, 12 Dec 2025 22:06:00 -0500 Subject: [PATCH 2/2] fix: change uri to endpoint to match the spec Signed-off-by: Armin Graf --- dsl.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsl.md b/dsl.md index 7ca88a90..7cf1e7a1 100644 --- a/dsl.md +++ b/dsl.md @@ -749,7 +749,7 @@ use: call: http with: method: post - uri: https://fake.log.collector.com + endpoint: https://fake.log.collector.com body: message: "${ \"Executing task '\($task.reference)'...\" }" after: @@ -757,7 +757,7 @@ use: call: http with: method: post - uri: https://fake.log.collector.com + endpoint: https://fake.log.collector.com body: message: "${ \"Executed task '\($task.reference)'...\" }" do: