diff --git a/.ci/validation/src/index.ts b/.ci/validation/src/index.ts index c7589196..744234a8 100644 --- a/.ci/validation/src/index.ts +++ b/.ci/validation/src/index.ts @@ -24,7 +24,7 @@ export module SWSchemaValidator { const ajv = new Ajv({ strict: false, allowUnionTypes: true }); addFormats(ajv); - const workflowSchemaId = "https://serverlessworkflow.io/schemas/1.0.2/workflow.yaml"; + const workflowSchemaId = "https://serverlessworkflow.io/schemas/1.0.3/workflow.yaml"; const schemaPath = "../../../schema"; export const defaultEncoding = "utf-8"; diff --git a/.ci/validation/test/fixtures/invalid/extra-property-in-call.yaml b/.ci/validation/test/fixtures/invalid/extra-property-in-call.yaml index cb91a7a5..850fe90f 100644 --- a/.ci/validation/test/fixtures/invalid/extra-property-in-call.yaml +++ b/.ci/validation/test/fixtures/invalid/extra-property-in-call.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: two-tasks-in-one-item version: '0.1.0' diff --git a/.ci/validation/test/fixtures/invalid/listen-any-until-any-until.yaml b/.ci/validation/test/fixtures/invalid/listen-any-until-any-until.yaml index ac290844..6f662947 100644 --- a/.ci/validation/test/fixtures/invalid/listen-any-until-any-until.yaml +++ b/.ci/validation/test/fixtures/invalid/listen-any-until-any-until.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: listen-to-any version: '0.1.0' diff --git a/.ci/validation/test/fixtures/invalid/two-tasks-in-one-item.yaml b/.ci/validation/test/fixtures/invalid/two-tasks-in-one-item.yaml index 13cbac8b..c94b94f4 100644 --- a/.ci/validation/test/fixtures/invalid/two-tasks-in-one-item.yaml +++ b/.ci/validation/test/fixtures/invalid/two-tasks-in-one-item.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: two-tasks-in-one-item version: '0.1.0' diff --git a/ctk/features/branch.feature b/ctk/features/branch.feature index e8cc7c42..6b6a543a 100644 --- a/ctk/features/branch.feature +++ b/ctk/features/branch.feature @@ -8,7 +8,7 @@ Feature: Composite Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: fork version: '1.0.0' diff --git a/ctk/features/call.feature b/ctk/features/call.feature index 30690b02..311d8f8c 100644 --- a/ctk/features/call.feature +++ b/ctk/features/call.feature @@ -11,7 +11,7 @@ Feature: Call Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: http-call-with-content-output version: '1.0.0' @@ -40,7 +40,7 @@ Feature: Call Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: http-call-with-response-output version: '1.0.0' @@ -68,7 +68,7 @@ Feature: Call Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: http-call-with-basic-auth version: '1.0.0' @@ -98,7 +98,7 @@ Feature: Call Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: openapi-call-with-content-output version: '1.0.0' @@ -127,7 +127,7 @@ Feature: Call Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: openapi-call-with-response-output version: '1.0.0' diff --git a/ctk/features/data-flow.feature b/ctk/features/data-flow.feature index a0d1e96c..44ddaa6c 100644 --- a/ctk/features/data-flow.feature +++ b/ctk/features/data-flow.feature @@ -8,7 +8,7 @@ Feature: Data Flow Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: output-filtering version: '1.0.0' @@ -36,7 +36,7 @@ Feature: Data Flow Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: output-filtering version: '1.0.0' @@ -65,7 +65,7 @@ Feature: Data Flow Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: non-object-output version: '1.0.0' diff --git a/ctk/features/do.feature b/ctk/features/do.feature index 41b5b238..56ec4078 100644 --- a/ctk/features/do.feature +++ b/ctk/features/do.feature @@ -8,7 +8,7 @@ Feature: Composite Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: do version: '1.0.0' diff --git a/ctk/features/emit.feature b/ctk/features/emit.feature index d728363a..591f72fd 100644 --- a/ctk/features/emit.feature +++ b/ctk/features/emit.feature @@ -8,7 +8,7 @@ Feature: Emit Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: emit version: '1.0.0' diff --git a/ctk/features/flow.feature b/ctk/features/flow.feature index 73769ebe..d39a83c2 100644 --- a/ctk/features/flow.feature +++ b/ctk/features/flow.feature @@ -7,7 +7,7 @@ Feature: Flow Directive Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: implicit-sequence version: '1.0.0' @@ -35,7 +35,7 @@ Feature: Flow Directive Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: explicit-sequence version: '1.0.0' diff --git a/ctk/features/for.feature b/ctk/features/for.feature index c98e9063..94ee464b 100644 --- a/ctk/features/for.feature +++ b/ctk/features/for.feature @@ -10,7 +10,7 @@ Feature: For Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: for version: '1.0.0' diff --git a/ctk/features/raise.feature b/ctk/features/raise.feature index 27fe8e03..1cdf4cf0 100644 --- a/ctk/features/raise.feature +++ b/ctk/features/raise.feature @@ -7,7 +7,7 @@ Feature: Raise Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: raise-custom-error version: '1.0.0' diff --git a/ctk/features/set.feature b/ctk/features/set.feature index b54a9164..08950d89 100644 --- a/ctk/features/set.feature +++ b/ctk/features/set.feature @@ -8,7 +8,7 @@ Feature: Set Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: set version: '1.0.0' diff --git a/ctk/features/switch.feature b/ctk/features/switch.feature index 1d8d1b62..ead8b7bd 100644 --- a/ctk/features/switch.feature +++ b/ctk/features/switch.feature @@ -7,7 +7,7 @@ Feature: Switch Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: switch-match version: '1.0.0' @@ -52,7 +52,7 @@ Feature: Switch Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: switch-default-implicit version: '1.0.0' @@ -95,7 +95,7 @@ Feature: Switch Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: switch-default-implicit version: '1.0.0' diff --git a/ctk/features/try.feature b/ctk/features/try.feature index 3d6f9978..9de783fd 100644 --- a/ctk/features/try.feature +++ b/ctk/features/try.feature @@ -11,7 +11,7 @@ Feature: Try Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: try-catch-404 version: '1.0.0' @@ -55,7 +55,7 @@ Feature: Try Task Given a workflow with definition: """yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: try-catch-503 version: '1.0.0' diff --git a/dsl-reference.md b/dsl-reference.md index 71dfe1af..f1b9d014 100644 --- a/dsl-reference.md +++ b/dsl-reference.md @@ -163,7 +163,7 @@ Configures a workflow's runtime expression evaluation. ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: order-pet version: '0.1.0' @@ -304,7 +304,7 @@ Enables the execution of a specified function within a workflow, allowing seamle ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: call-example version: '0.1.0' @@ -345,7 +345,7 @@ The [AsyncAPI Call](#asyncapi-call) enables workflows to interact with external ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: asyncapi-example version: '0.1.0' @@ -401,7 +401,7 @@ The [gRPC Call](#grpc-call) enables communication with external systems via the ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: grpc-example version: '0.1.0' @@ -440,7 +440,7 @@ The [HTTP Call](#http-call) enables workflows to interact with external services ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: http-example version: '0.1.0' @@ -471,7 +471,7 @@ The [OpenAPI Call](#openapi-call) enables workflows to interact with external se ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: openapi-example version: '0.1.0' @@ -510,7 +510,7 @@ The [A2A Call](#a2a-call) enables workflows to interact with AI agents described ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: a2a-example version: '0.1.0' @@ -554,7 +554,7 @@ The [MCP Call](#mcp-call) enables workflows to interact with [Model Context Prot ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: mcp-example version: '0.1.0' @@ -592,7 +592,7 @@ Serves as a fundamental building block within workflows, enabling the sequential ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: do-example version: '0.1.0' @@ -657,7 +657,7 @@ Allows workflows to publish events to event brokers or messaging systems, facili ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: emit-example version: '0.1.0' @@ -695,7 +695,7 @@ Allows workflows to iterate over a collection of items, executing a defined set ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: for-example version: '0.1.0' @@ -732,7 +732,7 @@ Allows workflows to execute multiple subtasks concurrently, enabling parallel pr ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: fork-example version: '0.1.0' @@ -785,7 +785,7 @@ Provides a mechanism for workflows to await and react to external events, enabli ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: listen-example version: '0.1.0' @@ -816,7 +816,7 @@ Intentionally triggers and propagates errors. By employing the "Raise" task, wor ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: raise-example version: '0.1.0' @@ -883,7 +883,7 @@ Provides the capability to execute external [containers](#container-process), [s ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-example version: '0.1.0' @@ -931,12 +931,13 @@ Enables the execution of external processes encapsulated within a containerized | stdin | `string` | `no` | A runtime expression, if any, passed as standard input to the command or default container CMD| | arguments | `string[]` | `no` | A list of the arguments, if any, passed as argv to the command or default container CMD | | lifetime | [`containerLifetime`](#container-lifetime) | `no` | An object used to configure the container's lifetime. | +| pullPolicy | `string` | `no` | Policy that controls how the container's image should be pulled from the registry. Defaults to `ifNotPresent` | ###### Examples ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-container-example version: '0.1.0' @@ -958,6 +959,7 @@ do: arguments: - Foo - Bar + pullPolicy: always ``` > [!NOTE] @@ -994,7 +996,7 @@ Enables the execution of custom scripts or code within a workflow, empowering wo ```yaml document: - dsl: 1.0.2 + dsl: 1.0.3 namespace: examples name: run-script-example version: 1.0.0 @@ -1028,7 +1030,7 @@ Enables the execution of shell commands within a workflow, enabling workflows to ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-shell-example version: '0.1.0' @@ -1067,7 +1069,7 @@ Enables the invocation and execution of nested workflows within a parent workflo ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-workflow-example version: '0.1.0' @@ -1096,7 +1098,7 @@ A task used to set data. ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: set-example version: '0.1.0' @@ -1124,7 +1126,7 @@ Enables conditional branching within workflows, allowing them to dynamically sel ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: switch-example version: '0.1.0' @@ -1208,7 +1210,7 @@ Serves as a mechanism within workflows to handle errors gracefully, potentially ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: try-example version: '0.1.0' @@ -1265,7 +1267,7 @@ Allows workflows to pause or delay their execution for a specified period of tim ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: wait-example version: '0.1.0' @@ -1715,7 +1717,7 @@ Defines the mechanism used to authenticate users and workflows attempting to acc ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: authentication-example version: '0.1.0' @@ -1752,7 +1754,7 @@ Defines the fundamentals of a 'basic' authentication. ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: basic-authentication-example version: '0.1.0' @@ -1787,7 +1789,7 @@ Defines the fundamentals of a 'bearer' authentication ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: bearer-authentication-example version: '0.1.0' @@ -1821,7 +1823,7 @@ Defines the fundamentals of a 'digest' authentication. ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: digest-authentication-example version: '0.1.0' @@ -1872,7 +1874,7 @@ Defines the fundamentals of an 'oauth2' authentication. ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: oauth2-authentication-example version: '0.1.0' @@ -1934,7 +1936,7 @@ Defines the fundamentals of an 'oidc' authentication. ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: oidc-authentication-example version: '0.1.0' @@ -1974,7 +1976,7 @@ For more information about catalogs, refer to the [Serverless Workflow DSL docum ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: catalog-example version: '0.1.0' @@ -2014,7 +2016,7 @@ Extensions enable the execution of tasks prior to those they extend, offering th *Perform logging before and after any non-extension task is run:* ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: logging-extension-example version: '0.1.0' @@ -2049,7 +2051,7 @@ do: *Intercept HTTP calls to 'https://mocked.service.com' and mock its response:* ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: intercept-extension-example version: '0.1.0' @@ -2365,7 +2367,7 @@ Defines a workflow or task timeout. ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: timeout-example version: '0.1.0' @@ -2507,7 +2509,7 @@ Describes the result of a process. ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-container-example version: '0.1.0' @@ -2561,7 +2563,7 @@ Configures the target server of an AsyncAPI operation. ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: asyncapi-example version: '0.1.0' @@ -2599,7 +2601,7 @@ Configures an AsyncAPI message to publish. ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: asyncapi-example version: '0.1.0' @@ -2664,7 +2666,7 @@ Configures a subscription to an AsyncAPI operation. ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: asyncapi-example version: '0.1.0' @@ -2701,7 +2703,7 @@ Configures the lifetime of an AsyncAPI subscription ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: asyncapi-example version: '0.1.0' @@ -2739,7 +2741,7 @@ Configures the iteration over each item (event or message) consumed by a subscri ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: asyncapi-example version: '0.1.0' diff --git a/dsl.md b/dsl.md index a133f5ab..0f4d62cb 100644 --- a/dsl.md +++ b/dsl.md @@ -566,7 +566,7 @@ This format ensures that the function, its version, and the catalog it belongs t *Calling a custom function defined within a catalog:* ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: catalog-example version: '0.1.0' @@ -668,7 +668,7 @@ The following example demonstrates how to use the `validateEmailAddress` custom ```yaml # workflow.yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: customFunctionWorkflow version: '0.1.0' @@ -736,7 +736,7 @@ See the [DSL reference](dsl-reference.md#extension) for more details about exten *Sample logging extension:* ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: sample-workflow version: '0.1.0' diff --git a/examples/accumulate-room-readings.yaml b/examples/accumulate-room-readings.yaml index 7ae0cb3c..01329246 100644 --- a/examples/accumulate-room-readings.yaml +++ b/examples/accumulate-room-readings.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: accumulate-room-readings version: '0.1.0' diff --git a/examples/authentication-bearer-uri-format.yaml b/examples/authentication-bearer-uri-format.yaml index 462a11cc..4317ffeb 100644 --- a/examples/authentication-bearer-uri-format.yaml +++ b/examples/authentication-bearer-uri-format.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: bearer-auth version: '0.1.0' diff --git a/examples/authentication-bearer.yaml b/examples/authentication-bearer.yaml index b3dfb08d..285e7684 100644 --- a/examples/authentication-bearer.yaml +++ b/examples/authentication-bearer.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: bearer-auth-uri-format version: '0.1.0' diff --git a/examples/authentication-oauth2-secret.yaml b/examples/authentication-oauth2-secret.yaml index 1ad0176e..a2d2b495 100644 --- a/examples/authentication-oauth2-secret.yaml +++ b/examples/authentication-oauth2-secret.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: oauth2-authentication version: '1.0.0' diff --git a/examples/authentication-oauth2.yaml b/examples/authentication-oauth2.yaml index 78ca66a8..1d9c2694 100644 --- a/examples/authentication-oauth2.yaml +++ b/examples/authentication-oauth2.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: oauth2-authentication version: '0.1.0' diff --git a/examples/authentication-oidc-secret.yaml b/examples/authentication-oidc-secret.yaml index 43e5d9d9..b219fa96 100644 --- a/examples/authentication-oidc-secret.yaml +++ b/examples/authentication-oidc-secret.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: oidc-authentication version: '1.0.0' diff --git a/examples/authentication-oidc.yaml b/examples/authentication-oidc.yaml index 65458b4f..327d109e 100644 --- a/examples/authentication-oidc.yaml +++ b/examples/authentication-oidc.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: oidc-authentication version: '0.1.0' diff --git a/examples/authentication-reusable.yaml b/examples/authentication-reusable.yaml index 48a1a749..4ab6af50 100644 --- a/examples/authentication-reusable.yaml +++ b/examples/authentication-reusable.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: bearer-auth version: '0.1.0' diff --git a/examples/call-asyncapi-publish.yaml b/examples/call-asyncapi-publish.yaml index 98d14eb5..f6e54839 100644 --- a/examples/call-asyncapi-publish.yaml +++ b/examples/call-asyncapi-publish.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: bearer-auth version: '0.1.0' diff --git a/examples/call-asyncapi-subscribe-consume-amount.yaml b/examples/call-asyncapi-subscribe-consume-amount.yaml index 62f182db..342c88e5 100644 --- a/examples/call-asyncapi-subscribe-consume-amount.yaml +++ b/examples/call-asyncapi-subscribe-consume-amount.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: bearer-auth version: '0.1.0' diff --git a/examples/call-asyncapi-subscribe-consume-forever-foreach.yaml b/examples/call-asyncapi-subscribe-consume-forever-foreach.yaml index a42cfd17..d81cd526 100644 --- a/examples/call-asyncapi-subscribe-consume-forever-foreach.yaml +++ b/examples/call-asyncapi-subscribe-consume-forever-foreach.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: bearer-auth version: '0.1.0' diff --git a/examples/call-asyncapi-subscribe-consume-until.yaml b/examples/call-asyncapi-subscribe-consume-until.yaml index 154b5626..50572f47 100644 --- a/examples/call-asyncapi-subscribe-consume-until.yaml +++ b/examples/call-asyncapi-subscribe-consume-until.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: bearer-auth version: '0.1.0' diff --git a/examples/call-asyncapi-subscribe-consume-while.yaml b/examples/call-asyncapi-subscribe-consume-while.yaml index c30075af..3a5de324 100644 --- a/examples/call-asyncapi-subscribe-consume-while.yaml +++ b/examples/call-asyncapi-subscribe-consume-while.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: bearer-auth version: '0.1.0' diff --git a/examples/call-custom-function-cataloged.yaml b/examples/call-custom-function-cataloged.yaml index 76cfe898..8704ec0c 100644 --- a/examples/call-custom-function-cataloged.yaml +++ b/examples/call-custom-function-cataloged.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: samples name: call-custom-function-cataloged version: '0.1.0' diff --git a/examples/call-custom-function-inline.yaml b/examples/call-custom-function-inline.yaml index 18dc9850..a9a817be 100644 --- a/examples/call-custom-function-inline.yaml +++ b/examples/call-custom-function-inline.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: samples name: call-custom-function-inline version: '0.1.0' diff --git a/examples/call-grpc.yaml b/examples/call-grpc.yaml index 86cf556d..6051175a 100644 --- a/examples/call-grpc.yaml +++ b/examples/call-grpc.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: grpc-example version: '0.1.0' diff --git a/examples/call-http-endpoint-interpolation-shorthand.yaml b/examples/call-http-endpoint-interpolation-shorthand.yaml index 43a7b33a..10828890 100644 --- a/examples/call-http-endpoint-interpolation-shorthand.yaml +++ b/examples/call-http-endpoint-interpolation-shorthand.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: call-http-shorthand-endpoint version: '0.1.0' diff --git a/examples/call-http-endpoint-interpolation.yaml b/examples/call-http-endpoint-interpolation.yaml index 7ce90c0c..9de9aa1a 100644 --- a/examples/call-http-endpoint-interpolation.yaml +++ b/examples/call-http-endpoint-interpolation.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: call-http-shorthand-endpoint version: '0.1.0' diff --git a/examples/call-http-query-headers-expressions.yaml b/examples/call-http-query-headers-expressions.yaml index 5d41a4ca..4cf69794 100644 --- a/examples/call-http-query-headers-expressions.yaml +++ b/examples/call-http-query-headers-expressions.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../schema/workflow.yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: http-query-headers-expressions version: '1.0.0' diff --git a/examples/call-http-query-parameters.yaml b/examples/call-http-query-parameters.yaml index e918a177..20aa9149 100644 --- a/examples/call-http-query-parameters.yaml +++ b/examples/call-http-query-parameters.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../schema/workflow.yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: http-query-params version: '1.0.0' diff --git a/examples/call-http-redirect.yaml b/examples/call-http-redirect.yaml index d0621676..22649d1e 100644 --- a/examples/call-http-redirect.yaml +++ b/examples/call-http-redirect.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../schema/workflow.yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: http-query-params version: '1.0.0' diff --git a/examples/call-mcp.yaml b/examples/call-mcp.yaml index ed8586f3..2ed5a44f 100644 --- a/examples/call-mcp.yaml +++ b/examples/call-mcp.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: mcp-example version: '0.1.0' diff --git a/examples/call-openapi-redirect.yaml b/examples/call-openapi-redirect.yaml index 2d629bd6..59c497c3 100644 --- a/examples/call-openapi-redirect.yaml +++ b/examples/call-openapi-redirect.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: openapi-example version: '0.1.0' diff --git a/examples/call-openapi.yaml b/examples/call-openapi.yaml index dc82b3f3..b4eafe11 100644 --- a/examples/call-openapi.yaml +++ b/examples/call-openapi.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: openapi-example version: '0.1.0' diff --git a/examples/conditional-task.yaml b/examples/conditional-task.yaml index 4dd8ed2b..1e2753ff 100644 --- a/examples/conditional-task.yaml +++ b/examples/conditional-task.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: conditional-task version: '0.1.0' diff --git a/examples/do-multiple.yaml b/examples/do-multiple.yaml index e5421c95..1ea8bbb5 100644 --- a/examples/do-multiple.yaml +++ b/examples/do-multiple.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: call-http-shorthand-endpoint version: '0.1.0' diff --git a/examples/do-single.yaml b/examples/do-single.yaml index 43a7b33a..10828890 100644 --- a/examples/do-single.yaml +++ b/examples/do-single.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: call-http-shorthand-endpoint version: '0.1.0' diff --git a/examples/emit.yaml b/examples/emit.yaml index ece072a9..a22dea99 100644 --- a/examples/emit.yaml +++ b/examples/emit.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: emit version: '0.1.0' diff --git a/examples/for.yaml b/examples/for.yaml index 4959c790..a27bde35 100644 --- a/examples/for.yaml +++ b/examples/for.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: for-example version: '0.1.0' diff --git a/examples/fork.yaml b/examples/fork.yaml index aa410081..22c4d070 100644 --- a/examples/fork.yaml +++ b/examples/fork.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: fork-example version: '0.1.0' diff --git a/examples/listen-to-all read-envelope.yaml b/examples/listen-to-all read-envelope.yaml index 413c38da..171b2be0 100644 --- a/examples/listen-to-all read-envelope.yaml +++ b/examples/listen-to-all read-envelope.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: listen-to-all-read-envelope version: '0.1.0' diff --git a/examples/listen-to-all.yaml b/examples/listen-to-all.yaml index bd5d1d62..8fb290e0 100644 --- a/examples/listen-to-all.yaml +++ b/examples/listen-to-all.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: listen-to-all version: '0.1.0' diff --git a/examples/listen-to-any-filter.yaml b/examples/listen-to-any-filter.yaml index 650010e8..8963e609 100644 --- a/examples/listen-to-any-filter.yaml +++ b/examples/listen-to-any-filter.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: listen-to-any-filter version: '0.1.0' diff --git a/examples/listen-to-any-forever-foreach.yaml b/examples/listen-to-any-forever-foreach.yaml index 307e55bb..d47a2afc 100644 --- a/examples/listen-to-any-forever-foreach.yaml +++ b/examples/listen-to-any-forever-foreach.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: listen-to-any-while-foreach version: '0.1.0' diff --git a/examples/listen-to-any-until-condition.yaml b/examples/listen-to-any-until-condition.yaml index 658d6d92..f44c12c7 100644 --- a/examples/listen-to-any-until-condition.yaml +++ b/examples/listen-to-any-until-condition.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: listen-to-any version: '0.1.0' diff --git a/examples/listen-to-any-until-consumed.yaml b/examples/listen-to-any-until-consumed.yaml index 3b36769e..c42ffcbe 100644 --- a/examples/listen-to-any-until-consumed.yaml +++ b/examples/listen-to-any-until-consumed.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: listen-to-any version: '0.1.0' diff --git a/examples/listen-to-any.yaml b/examples/listen-to-any.yaml index a09f4f5d..a54e05a9 100644 --- a/examples/listen-to-any.yaml +++ b/examples/listen-to-any.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: listen-to-any version: '0.1.0' diff --git a/examples/listen-to-one.yaml b/examples/listen-to-one.yaml index 584f6dc4..901e148b 100644 --- a/examples/listen-to-one.yaml +++ b/examples/listen-to-one.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: listen-to-one version: '0.1.0' diff --git a/examples/mock-service-extension.yaml b/examples/mock-service-extension.yaml index ba27f2fe..84624d90 100644 --- a/examples/mock-service-extension.yaml +++ b/examples/mock-service-extension.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: sample-workflow version: 0.1.0 diff --git a/examples/raise-inline.yaml b/examples/raise-inline.yaml index 7bfd4107..1fe10c69 100644 --- a/examples/raise-inline.yaml +++ b/examples/raise-inline.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: raise-not-implemented version: '0.1.0' diff --git a/examples/raise-reusable.yaml b/examples/raise-reusable.yaml index e199e030..fec7cd3a 100644 --- a/examples/raise-reusable.yaml +++ b/examples/raise-reusable.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: raise-not-implemented version: '0.1.0' diff --git a/examples/run-container-cleanup-always.yaml b/examples/run-container-cleanup-always.yaml index 7c20df63..149b6211 100644 --- a/examples/run-container-cleanup-always.yaml +++ b/examples/run-container-cleanup-always.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-container version: '0.1.0' diff --git a/examples/run-container-cleanup-eventually.yaml b/examples/run-container-cleanup-eventually.yaml index ce27f116..1f80536b 100644 --- a/examples/run-container-cleanup-eventually.yaml +++ b/examples/run-container-cleanup-eventually.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-container version: '0.1.0' diff --git a/examples/run-container-stdin-and-arguments.yaml b/examples/run-container-stdin-and-arguments.yaml index 1bed2db8..c1c48bf0 100644 --- a/examples/run-container-stdin-and-arguments.yaml +++ b/examples/run-container-stdin-and-arguments.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-container-stdin-and-arguments version: '0.1.0' diff --git a/examples/run-container-with-name.yaml b/examples/run-container-with-name.yaml index db84f151..8976b9d5 100644 --- a/examples/run-container-with-name.yaml +++ b/examples/run-container-with-name.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-container-with-name version: '0.1.0' diff --git a/examples/run-container-with-pull-policy.yaml b/examples/run-container-with-pull-policy.yaml new file mode 100644 index 00000000..45da5f6e --- /dev/null +++ b/examples/run-container-with-pull-policy.yaml @@ -0,0 +1,11 @@ +document: + dsl: '1.0.3' + namespace: test + name: run-container-with-pull-policy + version: '0.1.0' +do: + - runContainer: + run: + container: + image: hello-world + pullPolicy: always \ No newline at end of file diff --git a/examples/run-container.yaml b/examples/run-container.yaml index 38382d9e..1780b4bb 100644 --- a/examples/run-container.yaml +++ b/examples/run-container.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-container version: '0.1.0' diff --git a/examples/run-return-all.yaml b/examples/run-return-all.yaml index 7605ac1e..67050ea9 100644 --- a/examples/run-return-all.yaml +++ b/examples/run-return-all.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-container version: '0.1.0' diff --git a/examples/run-return-code.yaml b/examples/run-return-code.yaml index 229fb119..6aa5910d 100644 --- a/examples/run-return-code.yaml +++ b/examples/run-return-code.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-container version: '0.1.0' diff --git a/examples/run-return-none.yaml b/examples/run-return-none.yaml index d6420283..6ad86cde 100644 --- a/examples/run-return-none.yaml +++ b/examples/run-return-none.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-container version: '0.1.0' diff --git a/examples/run-return-stderr.yaml b/examples/run-return-stderr.yaml index 36b0e3aa..8ee1bf74 100644 --- a/examples/run-return-stderr.yaml +++ b/examples/run-return-stderr.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-container version: '0.1.0' diff --git a/examples/run-script-with-stdin-and-arguments.yaml b/examples/run-script-with-stdin-and-arguments.yaml index 915a0266..07d4fb1b 100644 --- a/examples/run-script-with-stdin-and-arguments.yaml +++ b/examples/run-script-with-stdin-and-arguments.yaml @@ -1,5 +1,5 @@ document: - dsl: 1.0.2 + dsl: 1.0.3 namespace: examples name: run-script-with-stdin-and-arguments version: 1.0.0 diff --git a/examples/run-shell-stdin-and-arguments.yaml b/examples/run-shell-stdin-and-arguments.yaml index 22171d7d..0f88d0e2 100644 --- a/examples/run-shell-stdin-and-arguments.yaml +++ b/examples/run-shell-stdin-and-arguments.yaml @@ -1,5 +1,5 @@ document: - dsl: 1.0.2 + dsl: 1.0.3 namespace: examples name: run-shell-with-stdin-and-arguments version: 1.0.0 diff --git a/examples/run-subflow.yaml b/examples/run-subflow.yaml index 3dd45490..040cffb7 100644 --- a/examples/run-subflow.yaml +++ b/examples/run-subflow.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: run-subflow version: '0.1.0' diff --git a/examples/schedule-cron.yaml b/examples/schedule-cron.yaml index 25d6ff9c..0632dc7c 100644 --- a/examples/schedule-cron.yaml +++ b/examples/schedule-cron.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: cron-schedule version: '0.1.0' diff --git a/examples/schedule-event-driven.yaml b/examples/schedule-event-driven.yaml index 482d20fa..572ef64a 100644 --- a/examples/schedule-event-driven.yaml +++ b/examples/schedule-event-driven.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: event-driven-schedule version: '0.1.0' diff --git a/examples/set-expression.yaml b/examples/set-expression.yaml index cdc0d1d2..927c2d12 100644 --- a/examples/set-expression.yaml +++ b/examples/set-expression.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: set version: '0.1.0' diff --git a/examples/set.yaml b/examples/set.yaml index 1f25af28..35b79742 100644 --- a/examples/set.yaml +++ b/examples/set.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: set version: '0.1.0' diff --git a/examples/star-wars-homeworld.yaml b/examples/star-wars-homeworld.yaml index 3bc4e621..01b48b08 100644 --- a/examples/star-wars-homeworld.yaml +++ b/examples/star-wars-homeworld.yaml @@ -1,6 +1,6 @@ # yaml-language-server: $schema=../schema/workflow.yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: examples name: star-wars-homeplanet version: '1.0.0' diff --git a/examples/switch-then-string.yaml b/examples/switch-then-string.yaml index 892e1a33..cc8ecfb1 100644 --- a/examples/switch-then-string.yaml +++ b/examples/switch-then-string.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: sample-workflow version: 0.1.0 diff --git a/examples/try-catch-retry-inline.yaml b/examples/try-catch-retry-inline.yaml index cb29f266..b560aecd 100644 --- a/examples/try-catch-retry-inline.yaml +++ b/examples/try-catch-retry-inline.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: try-catch-retry version: '0.1.0' diff --git a/examples/try-catch-retry-reusable.yaml b/examples/try-catch-retry-reusable.yaml index 372cd730..0077f932 100644 --- a/examples/try-catch-retry-reusable.yaml +++ b/examples/try-catch-retry-reusable.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: try-catch-retry version: '0.1.0' diff --git a/examples/try-catch-then.yaml b/examples/try-catch-then.yaml index f11fa1fb..fbe8dc37 100644 --- a/examples/try-catch-then.yaml +++ b/examples/try-catch-then.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: try-catch version: '0.1.0' diff --git a/examples/try-catch.yaml b/examples/try-catch.yaml index 42378bfb..ad7f8a0a 100644 --- a/examples/try-catch.yaml +++ b/examples/try-catch.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: try-catch version: '0.1.0' diff --git a/examples/wait-duration-inline.yaml b/examples/wait-duration-inline.yaml index c5d340ce..a47a367d 100644 --- a/examples/wait-duration-inline.yaml +++ b/examples/wait-duration-inline.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: wait-duration-inline version: '0.1.0' diff --git a/examples/wait-duration-iso8601.yaml b/examples/wait-duration-iso8601.yaml index 8512077f..94c751cb 100644 --- a/examples/wait-duration-iso8601.yaml +++ b/examples/wait-duration-iso8601.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: test name: wait-duration-8601 version: '0.1.0' diff --git a/schema/workflow.yaml b/schema/workflow.yaml index 40569a4a..0bd5cc42 100644 --- a/schema/workflow.yaml +++ b/schema/workflow.yaml @@ -1,4 +1,4 @@ -$id: https://serverlessworkflow.io/schemas/1.0.2/workflow.yaml +$id: https://serverlessworkflow.io/schemas/1.0.3/workflow.yaml $schema: https://json-schema.org/draft/2020-12/schema description: Serverless Workflow DSL - Workflow Schema. type: object @@ -823,6 +823,11 @@ $defs: $ref: '#/$defs/containerLifetime' title: ContainerLifetime description: An object, if any, used to configure the container's lifetime + pullPolicy: + type: string + title: ContainerPullPolicy + description: Policy that controls how the container's image should be pulled from the registry. Defaults to `ifNotPresent` + enum: [ ifNotPresent, always, never ] required: [ image ] required: [ container ] - title: RunScript diff --git a/use-cases/automated-data-backup/README.md b/use-cases/automated-data-backup/README.md index c1935e9c..4bd47939 100644 --- a/use-cases/automated-data-backup/README.md +++ b/use-cases/automated-data-backup/README.md @@ -54,7 +54,7 @@ The following diagram represents the high-level flow of the workflow: ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: sql-export-to-minio version: 0.1.2 diff --git a/use-cases/managing-ev-charging-stations/README.md b/use-cases/managing-ev-charging-stations/README.md index f9c3552d..0e40f5da 100644 --- a/use-cases/managing-ev-charging-stations/README.md +++ b/use-cases/managing-ev-charging-stations/README.md @@ -70,7 +70,7 @@ The following diagram represents the high-level flow of the workflow: ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: manage-ev-charging-stations version: '0.1.0' diff --git a/use-cases/managing-github-issues/README.md b/use-cases/managing-github-issues/README.md index db333639..565318fa 100644 --- a/use-cases/managing-github-issues/README.md +++ b/use-cases/managing-github-issues/README.md @@ -63,7 +63,7 @@ The following diagram represents the high-level flow of the workflow: ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: manage-github-issues version: '0.1.0' diff --git a/use-cases/multi-agent-ai-content-generation/README.md b/use-cases/multi-agent-ai-content-generation/README.md index f79a453c..6c7a1ff4 100644 --- a/use-cases/multi-agent-ai-content-generation/README.md +++ b/use-cases/multi-agent-ai-content-generation/README.md @@ -66,7 +66,7 @@ The following diagram represents the high-level flow of the workflow: ```yaml document: - dsl: '1.0.2' + dsl: '1.0.3' namespace: default name: multi-agent-collaboration-for-ai-content version: '0.1.0'