From 94823b0bcfd9fe985e02c6f47dae8aae98c793d7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bianchi Date: Fri, 6 Sep 2024 15:15:53 +0200 Subject: [PATCH 1/2] Updated schema version to 1.0.0-alpha3 Signed-off-by: Jean-Baptiste Bianchi --- .ci/validation/src/index.ts | 2 +- .../invalid/extra-property-in-call.yaml | 4 +- .../invalid/two-tasks-in-one-item.yaml | 4 +- ctk/features/branch.feature | 2 +- ctk/features/call.feature | 10 ++-- ctk/features/data-flow.feature | 6 +- ctk/features/do.feature | 2 +- ctk/features/emit.feature | 2 +- ctk/features/flow.feature | 4 +- ctk/features/for.feature | 2 +- ctk/features/raise.feature | 2 +- ctk/features/set.feature | 2 +- ctk/features/switch.feature | 6 +- ctk/features/try.feature | 4 +- dsl-reference.md | 60 +++++++++---------- dsl.md | 4 +- examples/accumulate-room-readings.yaml | 4 +- .../authentication-bearer-uri-format.yaml | 4 +- examples/authentication-bearer.yaml | 4 +- examples/authentication-oauth2.yaml | 4 +- examples/authentication-oidc.yaml | 4 +- examples/authentication-reusable.yaml | 4 +- examples/call-asyncapi.yaml | 4 +- examples/call-grpc.yaml | 2 +- ...http-endpoint-interpolation-shorthand.yaml | 4 +- .../call-http-endpoint-interpolation.yaml | 4 +- examples/call-openapi.yaml | 2 +- examples/do-multiple.yaml | 4 +- examples/do-single.yaml | 4 +- examples/emit.yaml | 2 +- examples/for.yaml | 2 +- examples/fork.yaml | 2 +- examples/listen-to-all.yaml | 2 +- examples/listen-to-any.yaml | 2 +- examples/listen-to-one.yaml | 2 +- examples/mock-service-extension.yaml | 2 +- examples/raise-inline copy.yaml | 2 +- examples/raise-reusable.yaml | 2 +- examples/run-container.yaml | 2 +- examples/run-script-with-arguments.yaml | 2 +- examples/run-subflow.yaml | 2 +- examples/schedule-cron.yaml | 4 +- examples/schedule-event-driven.yaml | 4 +- examples/set.yaml | 2 +- examples/switch-then-string.yaml | 2 +- examples/wait-duration-inline.yaml | 2 +- examples/wait-duration-iso8601.yaml | 2 +- schema/workflow.yaml | 2 +- use-cases/automated-data-backup/README.md | 2 +- 49 files changed, 104 insertions(+), 104 deletions(-) diff --git a/.ci/validation/src/index.ts b/.ci/validation/src/index.ts index 7e2b02a8..c0b96076 100644 --- a/.ci/validation/src/index.ts +++ b/.ci/validation/src/index.ts @@ -25,7 +25,7 @@ export module SWSchemaValidator { addFormats(ajv); const workflowSchemaId = - "https://serverlessworkflow.io/schemas/1.0.0-alpha1/workflow.yaml"; + "https://serverlessworkflow.io/schemas/1.0.0-alpha3/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 a400e257..7fa70939 100644 --- a/.ci/validation/test/fixtures/invalid/extra-property-in-call.yaml +++ b/.ci/validation/test/fixtures/invalid/extra-property-in-call.yaml @@ -1,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: two-tasks-in-one-item - version: 1.0.0-alpha1 + version: '1.0.0' do: - getPet: call: http 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 aed92cbf..8460dccd 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,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: two-tasks-in-one-item - version: 1.0.0-alpha1 + version: '1.0.0' do: - getPet: call: http diff --git a/ctk/features/branch.feature b/ctk/features/branch.feature index af81bc8c..c241d67c 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.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: fork do: diff --git a/ctk/features/call.feature b/ctk/features/call.feature index 1b590a6d..d121fc7c 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.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: http-call-with-content-output do: @@ -39,7 +39,7 @@ Feature: Call Task Given a workflow with definition: """yaml document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: http-call-with-response-output do: @@ -66,7 +66,7 @@ Feature: Call Task Given a workflow with definition: """yaml document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: http-call-with-basic-auth do: @@ -95,7 +95,7 @@ Feature: Call Task Given a workflow with definition: """yaml document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: openapi-call-with-content-output do: @@ -123,7 +123,7 @@ Feature: Call Task Given a workflow with definition: """yaml document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: openapi-call-with-response-output do: diff --git a/ctk/features/data-flow.feature b/ctk/features/data-flow.feature index fefc4dc0..6d2a0bf3 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.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: output-filtering do: @@ -35,7 +35,7 @@ Feature: Data Flow Given a workflow with definition: """yaml document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: output-filtering do: @@ -63,7 +63,7 @@ Feature: Data Flow Given a workflow with definition: """yaml document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: non-object-output do: diff --git a/ctk/features/do.feature b/ctk/features/do.feature index e84aa7d3..859c4dfb 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.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: do do: diff --git a/ctk/features/emit.feature b/ctk/features/emit.feature index 871ec7f2..02bced18 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.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: emit do: diff --git a/ctk/features/flow.feature b/ctk/features/flow.feature index 16917946..987edffc 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.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: implicit-sequence do: @@ -34,7 +34,7 @@ Feature: Flow Directive Given a workflow with definition: """yaml document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: explicit-sequence do: diff --git a/ctk/features/for.feature b/ctk/features/for.feature index 3ac783e5..fc40cdc9 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.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: for do: diff --git a/ctk/features/raise.feature b/ctk/features/raise.feature index ed2c506c..29d13263 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.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: raise-custom-error do: diff --git a/ctk/features/set.feature b/ctk/features/set.feature index c5fd4395..e408d9ca 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.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: set do: diff --git a/ctk/features/switch.feature b/ctk/features/switch.feature index bba64c00..1deb1424 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.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: switch-match do: @@ -51,7 +51,7 @@ Feature: Switch Task Given a workflow with definition: """yaml document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: switch-default-implicit do: @@ -93,7 +93,7 @@ Feature: Switch Task Given a workflow with definition: """yaml document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: switch-default-implicit do: diff --git a/ctk/features/try.feature b/ctk/features/try.feature index e67773f3..c44af2b2 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.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: try-catch-404 do: @@ -54,7 +54,7 @@ Feature: Try Task Given a workflow with definition: """yaml document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: try-catch-503 do: diff --git a/dsl-reference.md b/dsl-reference.md index 5650e2e3..6e945101 100644 --- a/dsl-reference.md +++ b/dsl-reference.md @@ -131,7 +131,7 @@ Configures a workflow's runtime expression evaluation. ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: order-pet version: '1.0.0' @@ -272,7 +272,7 @@ Enables the execution of a specified function within a workflow, allowing seamle ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: call-example version: '0.1.0' @@ -311,7 +311,7 @@ The [AsyncAPI Call](#asyncapi-call) enables workflows to interact with external ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: asyncapi-example version: '0.1.0' @@ -349,7 +349,7 @@ The [gRPC Call](#grpc-call) enables communication with external systems via the ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: grpc-example version: '0.1.0' @@ -387,7 +387,7 @@ The [HTTP Call](#http-call) enables workflows to interact with external services ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: http-example version: '0.1.0' @@ -417,7 +417,7 @@ The [OpenAPI Call](#openapi-call) enables workflows to interact with external se ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: openapi-example version: '0.1.0' @@ -446,7 +446,7 @@ Serves as a fundamental building block within workflows, enabling the sequential ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: do-example version: '0.1.0' @@ -511,7 +511,7 @@ Allows workflows to publish events to event brokers or messaging systems, facili ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: emit-example version: '0.1.0' @@ -549,7 +549,7 @@ Allows workflows to iterate over a collection of items, executing a defined set ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: for-example version: '0.1.0' @@ -586,7 +586,7 @@ Allows workflows to execute multiple subtasks concurrently, enabling parallel pr ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: fork-example version: '0.1.0' @@ -627,7 +627,7 @@ Provides a mechanism for workflows to await and react to external events, enabli ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: listen-example version: '0.1.0' @@ -660,7 +660,7 @@ Intentionally triggers and propagates errors. By employing the "Raise" task, wor ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: raise-example version: '0.1.0' @@ -726,7 +726,7 @@ Provides the capability to execute external [containers](#container-process), [s ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: run-example version: '0.1.0' @@ -775,7 +775,7 @@ Enables the execution of external processes encapsulated within a containerized ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: run-container-example version: '0.1.0' @@ -804,7 +804,7 @@ Enables the execution of custom scripts or code within a workflow, empowering wo ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: run-script-example version: '0.1.0' @@ -835,7 +835,7 @@ Enables the execution of shell commands within a workflow, enabling workflows to ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: run-shell-example version: '0.1.0' @@ -862,7 +862,7 @@ Enables the invocation and execution of nested workflows within a parent workflo ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: run-workflow-example version: '0.1.0' @@ -891,7 +891,7 @@ A task used to set data. ```yaml document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: set-example version: '0.1.0' @@ -917,7 +917,7 @@ Enables conditional branching within workflows, allowing them to dynamically sel ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: switch-example version: '0.1.0' @@ -1001,7 +1001,7 @@ Serves as a mechanism within workflows to handle errors gracefully, potentially ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: try-example version: '0.1.0' @@ -1058,7 +1058,7 @@ Allows workflows to pause or delay their execution for a specified period of tim ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: wait-example version: '0.1.0' @@ -1122,7 +1122,7 @@ Defines the mechanism used to authenticate users and workflows attempting to acc ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: authentication-example version: '0.1.0' @@ -1159,7 +1159,7 @@ Defines the fundamentals of a 'basic' authentication. ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: basic-authentication-example version: '0.1.0' @@ -1194,7 +1194,7 @@ Defines the fundamentals of a 'bearer' authentication ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: bearer-authentication-example version: '0.1.0' @@ -1228,7 +1228,7 @@ Defines the fundamentals of a 'digest' authentication. ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: digest-authentication-example version: '0.1.0' @@ -1279,7 +1279,7 @@ Defines the fundamentals of an 'oauth2' authentication. ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: oauth2-authentication-example version: '0.1.0' @@ -1341,7 +1341,7 @@ Defines the fundamentals of an 'oidc' authentication. ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: oidc-authentication-example version: '0.1.0' @@ -1383,7 +1383,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.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: logging-extension-example version: '0.1.0' @@ -1418,7 +1418,7 @@ do: *Intercept HTTP calls to 'https://mocked.service.com' and mock its response:* ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: intercept-extension-example version: '0.1.0' @@ -1733,7 +1733,7 @@ Defines a workflow or task timeout. ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: default name: timeout-example version: '0.1.0' diff --git a/dsl.md b/dsl.md index a0b658f9..67b0f3b9 100644 --- a/dsl.md +++ b/dsl.md @@ -531,7 +531,7 @@ The following example demonstrates how to use the `validateEmailAddress` custom ```yaml # workflow.yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: default name: customFunctionWorkflow version: '0.1.0' @@ -599,7 +599,7 @@ See the [DSL reference](dsl-reference.md#extension) for more details about exten *Sample logging extension:* ```yaml document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: sample-workflow version: '0.1.0' diff --git a/examples/accumulate-room-readings.yaml b/examples/accumulate-room-readings.yaml index eb5bd8e0..a7f3c60b 100644 --- a/examples/accumulate-room-readings.yaml +++ b/examples/accumulate-room-readings.yaml @@ -1,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: accumulate-room-readings - version: 1.0.0-alpha1 + version: '1.0.0' do: - consumeReading: listen: diff --git a/examples/authentication-bearer-uri-format.yaml b/examples/authentication-bearer-uri-format.yaml index 03f6c883..4f670f91 100644 --- a/examples/authentication-bearer-uri-format.yaml +++ b/examples/authentication-bearer-uri-format.yaml @@ -1,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: bearer-auth - version: 1.0.0-alpha1 + version: '1.0.0' do: - getPet: call: http diff --git a/examples/authentication-bearer.yaml b/examples/authentication-bearer.yaml index 18d92074..9d795f83 100644 --- a/examples/authentication-bearer.yaml +++ b/examples/authentication-bearer.yaml @@ -1,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: bearer-auth-uri-format - version: 1.0.0-alpha1 + version: '1.0.0' do: - getPet: call: http diff --git a/examples/authentication-oauth2.yaml b/examples/authentication-oauth2.yaml index 7848354a..ca76ae61 100644 --- a/examples/authentication-oauth2.yaml +++ b/examples/authentication-oauth2.yaml @@ -1,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: oauth2-authentication - version: 1.0.0-alpha1 + version: '1.0.0' do: - getPet: call: http diff --git a/examples/authentication-oidc.yaml b/examples/authentication-oidc.yaml index 5ce2ba89..547fe39e 100644 --- a/examples/authentication-oidc.yaml +++ b/examples/authentication-oidc.yaml @@ -1,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: oidc-authentication - version: 1.0.0-alpha1 + version: '1.0.0' do: - getPet: call: http diff --git a/examples/authentication-reusable.yaml b/examples/authentication-reusable.yaml index e5ac744b..42d36ee4 100644 --- a/examples/authentication-reusable.yaml +++ b/examples/authentication-reusable.yaml @@ -1,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: bearer-auth - version: 1.0.0-alpha1 + version: '1.0.0' use: authentications: petStoreAuth: diff --git a/examples/call-asyncapi.yaml b/examples/call-asyncapi.yaml index 3606b5ab..ffc954ae 100644 --- a/examples/call-asyncapi.yaml +++ b/examples/call-asyncapi.yaml @@ -1,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: bearer-auth - version: 1.0.0-alpha1 + version: '1.0.0' do: - findPet: call: asyncapi diff --git a/examples/call-grpc.yaml b/examples/call-grpc.yaml index 03604aed..9c3dde83 100644 --- a/examples/call-grpc.yaml +++ b/examples/call-grpc.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' 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 9be80066..4163f308 100644 --- a/examples/call-http-endpoint-interpolation-shorthand.yaml +++ b/examples/call-http-endpoint-interpolation-shorthand.yaml @@ -1,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: call-http-shorthand-endpoint - version: 1.0.0-alpha1 + version: '1.0.0' do: - getPet: call: http diff --git a/examples/call-http-endpoint-interpolation.yaml b/examples/call-http-endpoint-interpolation.yaml index 4c3cc594..ff3efc6f 100644 --- a/examples/call-http-endpoint-interpolation.yaml +++ b/examples/call-http-endpoint-interpolation.yaml @@ -1,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: call-http-shorthand-endpoint - version: 1.0.0-alpha1 + version: '1.0.0' do: - getPet: call: http diff --git a/examples/call-openapi.yaml b/examples/call-openapi.yaml index 4b129513..1f1a025c 100644 --- a/examples/call-openapi.yaml +++ b/examples/call-openapi.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: openapi-example version: '0.1.0' diff --git a/examples/do-multiple.yaml b/examples/do-multiple.yaml index d0c5e154..b503247f 100644 --- a/examples/do-multiple.yaml +++ b/examples/do-multiple.yaml @@ -1,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: call-http-shorthand-endpoint - version: 1.0.0-alpha1 + version: '1.0.0' do: - getPet: call: http diff --git a/examples/do-single.yaml b/examples/do-single.yaml index 9be80066..4163f308 100644 --- a/examples/do-single.yaml +++ b/examples/do-single.yaml @@ -1,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: call-http-shorthand-endpoint - version: 1.0.0-alpha1 + version: '1.0.0' do: - getPet: call: http diff --git a/examples/emit.yaml b/examples/emit.yaml index 4543e846..8c3cdbef 100644 --- a/examples/emit.yaml +++ b/examples/emit.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: emit version: '0.1.0' diff --git a/examples/for.yaml b/examples/for.yaml index 3e3b2f72..c0e11b59 100644 --- a/examples/for.yaml +++ b/examples/for.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: for-example version: '0.1.0' diff --git a/examples/fork.yaml b/examples/fork.yaml index fcd9c63e..d74e059a 100644 --- a/examples/fork.yaml +++ b/examples/fork.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: fork-example version: '0.1.0' diff --git a/examples/listen-to-all.yaml b/examples/listen-to-all.yaml index 859a978b..daa4a040 100644 --- a/examples/listen-to-all.yaml +++ b/examples/listen-to-all.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: listen-to-all version: '0.1.0' diff --git a/examples/listen-to-any.yaml b/examples/listen-to-any.yaml index a842f0da..58ff4bc2 100644 --- a/examples/listen-to-any.yaml +++ b/examples/listen-to-any.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' 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 c2e9e45b..c723edbf 100644 --- a/examples/listen-to-one.yaml +++ b/examples/listen-to-one.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' 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 9cbb0a1a..3f331c8d 100644 --- a/examples/mock-service-extension.yaml +++ b/examples/mock-service-extension.yaml @@ -1,5 +1,5 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: test name: sample-workflow version: 0.1.0 diff --git a/examples/raise-inline copy.yaml b/examples/raise-inline copy.yaml index 7f16bc1c..fd8a2a06 100644 --- a/examples/raise-inline copy.yaml +++ b/examples/raise-inline copy.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: raise-not-implemented version: '0.1.0' diff --git a/examples/raise-reusable.yaml b/examples/raise-reusable.yaml index 7f5bd965..e945dfb9 100644 --- a/examples/raise-reusable.yaml +++ b/examples/raise-reusable.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: raise-not-implemented version: '0.1.0' diff --git a/examples/run-container.yaml b/examples/run-container.yaml index 78b27470..45c3b99a 100644 --- a/examples/run-container.yaml +++ b/examples/run-container.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: run-container version: '0.1.0' diff --git a/examples/run-script-with-arguments.yaml b/examples/run-script-with-arguments.yaml index b8ce89fe..8fb4676c 100644 --- a/examples/run-script-with-arguments.yaml +++ b/examples/run-script-with-arguments.yaml @@ -1,5 +1,5 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: samples name: run-script-with-arguments version: 0.1.0 diff --git a/examples/run-subflow.yaml b/examples/run-subflow.yaml index 6a96e36f..a2219345 100644 --- a/examples/run-subflow.yaml +++ b/examples/run-subflow.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: run-subflow version: '0.1.0' diff --git a/examples/schedule-cron.yaml b/examples/schedule-cron.yaml index dd261bd0..10e10e7b 100644 --- a/examples/schedule-cron.yaml +++ b/examples/schedule-cron.yaml @@ -1,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: cron-schedule - version: 1.0.0-alpha1 + version: '1.0.0' schedule: cron: 0 0 * * * do: diff --git a/examples/schedule-event-driven.yaml b/examples/schedule-event-driven.yaml index 22ab0a06..37386a82 100644 --- a/examples/schedule-event-driven.yaml +++ b/examples/schedule-event-driven.yaml @@ -1,8 +1,8 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: examples name: event-driven-schedule - version: 1.0.0-alpha1 + version: '1.0.0' schedule: on: one: diff --git a/examples/set.yaml b/examples/set.yaml index f983c907..35857943 100644 --- a/examples/set.yaml +++ b/examples/set.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: set version: '0.1.0' diff --git a/examples/switch-then-string.yaml b/examples/switch-then-string.yaml index 881bab50..6bba5a2c 100644 --- a/examples/switch-then-string.yaml +++ b/examples/switch-then-string.yaml @@ -1,5 +1,5 @@ document: - dsl: 1.0.0-alpha1 + dsl: '1.0.0-alpha3' namespace: test name: sample-workflow version: 0.1.0 diff --git a/examples/wait-duration-inline.yaml b/examples/wait-duration-inline.yaml index 2dfd2abc..0f176c96 100644 --- a/examples/wait-duration-inline.yaml +++ b/examples/wait-duration-inline.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' 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 86bf314a..ac6a1c51 100644 --- a/examples/wait-duration-iso8601.yaml +++ b/examples/wait-duration-iso8601.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha1' + dsl: '1.0.0-alpha3' namespace: test name: wait-duration-8601 version: '0.1.0' diff --git a/schema/workflow.yaml b/schema/workflow.yaml index 164f59d1..5c88aef3 100644 --- a/schema/workflow.yaml +++ b/schema/workflow.yaml @@ -1,4 +1,4 @@ -$id: https://serverlessworkflow.io/schemas/1.0.0-alpha1/workflow.yaml +$id: https://serverlessworkflow.io/schemas/1.0.0-alpha3/workflow.yaml $schema: https://json-schema.org/draft/2020-12/schema description: Serverless Workflow DSL - Workflow Schema. type: object diff --git a/use-cases/automated-data-backup/README.md b/use-cases/automated-data-backup/README.md index ed364efa..bea0fa4c 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.0-alpha1 + dsl: '1.0.0-alpha3' namespace: default name: sql-export-to-minio version: 0.1.2 From 663136e1ef4cfbf315576a7b22111d08072ff225 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bianchi Date: Fri, 6 Sep 2024 17:33:55 +0200 Subject: [PATCH 2/2] Updated schema version to 1.0.0 Signed-off-by: Jean-Baptiste Bianchi --- .ci/validation/src/index.ts | 2 +- .../invalid/extra-property-in-call.yaml | 4 +- .../invalid/two-tasks-in-one-item.yaml | 4 +- ctk/features/branch.feature | 2 +- ctk/features/call.feature | 10 +-- ctk/features/data-flow.feature | 6 +- ctk/features/do.feature | 2 +- ctk/features/emit.feature | 2 +- ctk/features/flow.feature | 4 +- ctk/features/for.feature | 2 +- ctk/features/raise.feature | 2 +- ctk/features/set.feature | 2 +- ctk/features/switch.feature | 6 +- ctk/features/try.feature | 4 +- dsl-reference.md | 62 +++++++++---------- dsl.md | 4 +- examples/accumulate-room-readings.yaml | 4 +- .../authentication-bearer-uri-format.yaml | 4 +- examples/authentication-bearer.yaml | 4 +- examples/authentication-oauth2.yaml | 4 +- examples/authentication-oidc.yaml | 4 +- examples/authentication-reusable.yaml | 4 +- examples/call-asyncapi.yaml | 4 +- examples/call-custom-function-cataloged.yaml | 2 +- examples/call-custom-function-inline.yaml | 2 +- examples/call-grpc.yaml | 2 +- ...http-endpoint-interpolation-shorthand.yaml | 4 +- .../call-http-endpoint-interpolation.yaml | 4 +- examples/call-openapi.yaml | 2 +- examples/conditional-task.yaml | 2 +- examples/do-multiple.yaml | 4 +- examples/do-single.yaml | 4 +- examples/emit.yaml | 2 +- examples/for.yaml | 2 +- examples/fork.yaml | 2 +- examples/listen-to-all.yaml | 2 +- examples/listen-to-any.yaml | 2 +- examples/listen-to-one.yaml | 2 +- examples/mock-service-extension.yaml | 2 +- examples/raise-inline copy.yaml | 2 +- examples/raise-reusable.yaml | 2 +- examples/run-container.yaml | 2 +- examples/run-script-with-arguments.yaml | 2 +- examples/run-subflow.yaml | 2 +- examples/schedule-cron.yaml | 4 +- examples/schedule-event-driven.yaml | 4 +- examples/set.yaml | 2 +- examples/switch-then-string.yaml | 2 +- examples/try-catch-retry-inline.yaml | 2 +- examples/try-catch-retry-reusable.yaml | 2 +- examples/try-catch-then.yaml | 2 +- examples/try-catch.yaml | 2 +- examples/wait-duration-inline.yaml | 2 +- examples/wait-duration-iso8601.yaml | 2 +- schema/workflow.yaml | 2 +- use-cases/automated-data-backup/README.md | 2 +- 56 files changed, 112 insertions(+), 112 deletions(-) diff --git a/.ci/validation/src/index.ts b/.ci/validation/src/index.ts index c0b96076..c6576555 100644 --- a/.ci/validation/src/index.ts +++ b/.ci/validation/src/index.ts @@ -25,7 +25,7 @@ export module SWSchemaValidator { addFormats(ajv); const workflowSchemaId = - "https://serverlessworkflow.io/schemas/1.0.0-alpha3/workflow.yaml"; + "https://serverlessworkflow.io/schemas/1.0.0/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 7fa70939..adf6a73f 100644 --- a/.ci/validation/test/fixtures/invalid/extra-property-in-call.yaml +++ b/.ci/validation/test/fixtures/invalid/extra-property-in-call.yaml @@ -1,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: two-tasks-in-one-item - version: '1.0.0' + version: '0.1.0' do: - getPet: call: http 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 8460dccd..ba15a80d 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,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: two-tasks-in-one-item - version: '1.0.0' + version: '0.1.0' do: - getPet: call: http diff --git a/ctk/features/branch.feature b/ctk/features/branch.feature index c241d67c..cbd6c0e7 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.0-alpha3' + dsl: '1.0.0' namespace: default name: fork do: diff --git a/ctk/features/call.feature b/ctk/features/call.feature index d121fc7c..f69ba876 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.0-alpha3' + dsl: '1.0.0' namespace: default name: http-call-with-content-output do: @@ -39,7 +39,7 @@ Feature: Call Task Given a workflow with definition: """yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: default name: http-call-with-response-output do: @@ -66,7 +66,7 @@ Feature: Call Task Given a workflow with definition: """yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: default name: http-call-with-basic-auth do: @@ -95,7 +95,7 @@ Feature: Call Task Given a workflow with definition: """yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: default name: openapi-call-with-content-output do: @@ -123,7 +123,7 @@ Feature: Call Task Given a workflow with definition: """yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: default name: openapi-call-with-response-output do: diff --git a/ctk/features/data-flow.feature b/ctk/features/data-flow.feature index 6d2a0bf3..289160e5 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.0-alpha3' + dsl: '1.0.0' namespace: default name: output-filtering do: @@ -35,7 +35,7 @@ Feature: Data Flow Given a workflow with definition: """yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: default name: output-filtering do: @@ -63,7 +63,7 @@ Feature: Data Flow Given a workflow with definition: """yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: default name: non-object-output do: diff --git a/ctk/features/do.feature b/ctk/features/do.feature index 859c4dfb..8668b23e 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.0-alpha3' + dsl: '1.0.0' namespace: default name: do do: diff --git a/ctk/features/emit.feature b/ctk/features/emit.feature index 02bced18..0ec2046f 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.0-alpha3' + dsl: '1.0.0' namespace: default name: emit do: diff --git a/ctk/features/flow.feature b/ctk/features/flow.feature index 987edffc..d7fb90d4 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.0-alpha3' + dsl: '1.0.0' namespace: default name: implicit-sequence do: @@ -34,7 +34,7 @@ Feature: Flow Directive Given a workflow with definition: """yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: default name: explicit-sequence do: diff --git a/ctk/features/for.feature b/ctk/features/for.feature index fc40cdc9..6ebb0d07 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.0-alpha3' + dsl: '1.0.0' namespace: default name: for do: diff --git a/ctk/features/raise.feature b/ctk/features/raise.feature index 29d13263..d7bbc82e 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.0-alpha3' + dsl: '1.0.0' namespace: default name: raise-custom-error do: diff --git a/ctk/features/set.feature b/ctk/features/set.feature index e408d9ca..1b5c9d96 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.0-alpha3' + dsl: '1.0.0' namespace: default name: set do: diff --git a/ctk/features/switch.feature b/ctk/features/switch.feature index 1deb1424..86b797a1 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.0-alpha3' + dsl: '1.0.0' namespace: default name: switch-match do: @@ -51,7 +51,7 @@ Feature: Switch Task Given a workflow with definition: """yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: default name: switch-default-implicit do: @@ -93,7 +93,7 @@ Feature: Switch Task Given a workflow with definition: """yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: default name: switch-default-implicit do: diff --git a/ctk/features/try.feature b/ctk/features/try.feature index c44af2b2..c28ac5c5 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.0-alpha3' + dsl: '1.0.0' namespace: default name: try-catch-404 do: @@ -54,7 +54,7 @@ Feature: Try Task Given a workflow with definition: """yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: default name: try-catch-503 do: diff --git a/dsl-reference.md b/dsl-reference.md index 6e945101..5d675792 100644 --- a/dsl-reference.md +++ b/dsl-reference.md @@ -131,10 +131,10 @@ Configures a workflow's runtime expression evaluation. ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: order-pet - version: '1.0.0' + version: '0.1.0' title: Order Pet - 1.0.0 summary: > # Order Pet - 1.0.0 @@ -272,7 +272,7 @@ Enables the execution of a specified function within a workflow, allowing seamle ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: call-example version: '0.1.0' @@ -311,7 +311,7 @@ The [AsyncAPI Call](#asyncapi-call) enables workflows to interact with external ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: asyncapi-example version: '0.1.0' @@ -349,7 +349,7 @@ The [gRPC Call](#grpc-call) enables communication with external systems via the ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: grpc-example version: '0.1.0' @@ -387,7 +387,7 @@ The [HTTP Call](#http-call) enables workflows to interact with external services ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: http-example version: '0.1.0' @@ -417,7 +417,7 @@ The [OpenAPI Call](#openapi-call) enables workflows to interact with external se ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: openapi-example version: '0.1.0' @@ -446,7 +446,7 @@ Serves as a fundamental building block within workflows, enabling the sequential ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: do-example version: '0.1.0' @@ -511,7 +511,7 @@ Allows workflows to publish events to event brokers or messaging systems, facili ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: emit-example version: '0.1.0' @@ -549,7 +549,7 @@ Allows workflows to iterate over a collection of items, executing a defined set ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: for-example version: '0.1.0' @@ -586,7 +586,7 @@ Allows workflows to execute multiple subtasks concurrently, enabling parallel pr ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: fork-example version: '0.1.0' @@ -627,7 +627,7 @@ Provides a mechanism for workflows to await and react to external events, enabli ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: listen-example version: '0.1.0' @@ -660,7 +660,7 @@ Intentionally triggers and propagates errors. By employing the "Raise" task, wor ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: raise-example version: '0.1.0' @@ -726,7 +726,7 @@ Provides the capability to execute external [containers](#container-process), [s ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: run-example version: '0.1.0' @@ -775,7 +775,7 @@ Enables the execution of external processes encapsulated within a containerized ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: run-container-example version: '0.1.0' @@ -804,7 +804,7 @@ Enables the execution of custom scripts or code within a workflow, empowering wo ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: run-script-example version: '0.1.0' @@ -835,7 +835,7 @@ Enables the execution of shell commands within a workflow, enabling workflows to ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: run-shell-example version: '0.1.0' @@ -862,7 +862,7 @@ Enables the invocation and execution of nested workflows within a parent workflo ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: run-workflow-example version: '0.1.0' @@ -891,7 +891,7 @@ A task used to set data. ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: default name: set-example version: '0.1.0' @@ -917,7 +917,7 @@ Enables conditional branching within workflows, allowing them to dynamically sel ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: switch-example version: '0.1.0' @@ -1001,7 +1001,7 @@ Serves as a mechanism within workflows to handle errors gracefully, potentially ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: try-example version: '0.1.0' @@ -1058,7 +1058,7 @@ Allows workflows to pause or delay their execution for a specified period of tim ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: wait-example version: '0.1.0' @@ -1122,7 +1122,7 @@ Defines the mechanism used to authenticate users and workflows attempting to acc ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: authentication-example version: '0.1.0' @@ -1159,7 +1159,7 @@ Defines the fundamentals of a 'basic' authentication. ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: basic-authentication-example version: '0.1.0' @@ -1194,7 +1194,7 @@ Defines the fundamentals of a 'bearer' authentication ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: bearer-authentication-example version: '0.1.0' @@ -1228,7 +1228,7 @@ Defines the fundamentals of a 'digest' authentication. ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: digest-authentication-example version: '0.1.0' @@ -1279,7 +1279,7 @@ Defines the fundamentals of an 'oauth2' authentication. ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: oauth2-authentication-example version: '0.1.0' @@ -1341,7 +1341,7 @@ Defines the fundamentals of an 'oidc' authentication. ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: oidc-authentication-example version: '0.1.0' @@ -1383,7 +1383,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.0-alpha3' + dsl: '1.0.0' namespace: test name: logging-extension-example version: '0.1.0' @@ -1418,7 +1418,7 @@ do: *Intercept HTTP calls to 'https://mocked.service.com' and mock its response:* ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: intercept-extension-example version: '0.1.0' @@ -1733,7 +1733,7 @@ Defines a workflow or task timeout. ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: default name: timeout-example version: '0.1.0' diff --git a/dsl.md b/dsl.md index 67b0f3b9..fe60dfee 100644 --- a/dsl.md +++ b/dsl.md @@ -531,7 +531,7 @@ The following example demonstrates how to use the `validateEmailAddress` custom ```yaml # workflow.yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: default name: customFunctionWorkflow version: '0.1.0' @@ -599,7 +599,7 @@ See the [DSL reference](dsl-reference.md#extension) for more details about exten *Sample logging extension:* ```yaml document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: sample-workflow version: '0.1.0' diff --git a/examples/accumulate-room-readings.yaml b/examples/accumulate-room-readings.yaml index a7f3c60b..306652e0 100644 --- a/examples/accumulate-room-readings.yaml +++ b/examples/accumulate-room-readings.yaml @@ -1,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: accumulate-room-readings - version: '1.0.0' + version: '0.1.0' do: - consumeReading: listen: diff --git a/examples/authentication-bearer-uri-format.yaml b/examples/authentication-bearer-uri-format.yaml index 4f670f91..e68f3f05 100644 --- a/examples/authentication-bearer-uri-format.yaml +++ b/examples/authentication-bearer-uri-format.yaml @@ -1,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: bearer-auth - version: '1.0.0' + version: '0.1.0' do: - getPet: call: http diff --git a/examples/authentication-bearer.yaml b/examples/authentication-bearer.yaml index 9d795f83..c064038a 100644 --- a/examples/authentication-bearer.yaml +++ b/examples/authentication-bearer.yaml @@ -1,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: bearer-auth-uri-format - version: '1.0.0' + version: '0.1.0' do: - getPet: call: http diff --git a/examples/authentication-oauth2.yaml b/examples/authentication-oauth2.yaml index ca76ae61..9008ac7d 100644 --- a/examples/authentication-oauth2.yaml +++ b/examples/authentication-oauth2.yaml @@ -1,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: oauth2-authentication - version: '1.0.0' + version: '0.1.0' do: - getPet: call: http diff --git a/examples/authentication-oidc.yaml b/examples/authentication-oidc.yaml index 547fe39e..c23d3b71 100644 --- a/examples/authentication-oidc.yaml +++ b/examples/authentication-oidc.yaml @@ -1,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: oidc-authentication - version: '1.0.0' + version: '0.1.0' do: - getPet: call: http diff --git a/examples/authentication-reusable.yaml b/examples/authentication-reusable.yaml index 42d36ee4..cdabf302 100644 --- a/examples/authentication-reusable.yaml +++ b/examples/authentication-reusable.yaml @@ -1,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: bearer-auth - version: '1.0.0' + version: '0.1.0' use: authentications: petStoreAuth: diff --git a/examples/call-asyncapi.yaml b/examples/call-asyncapi.yaml index ffc954ae..6c955952 100644 --- a/examples/call-asyncapi.yaml +++ b/examples/call-asyncapi.yaml @@ -1,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: bearer-auth - version: '1.0.0' + version: '0.1.0' do: - findPet: call: asyncapi diff --git a/examples/call-custom-function-cataloged.yaml b/examples/call-custom-function-cataloged.yaml index 7e6c2180..6613b17e 100644 --- a/examples/call-custom-function-cataloged.yaml +++ b/examples/call-custom-function-cataloged.yaml @@ -2,7 +2,7 @@ document: dsl: '1.0.0' namespace: samples name: call-custom-function-cataloged - version: '1.0.0' + version: '0.1.0' do: - log: call: https://raw.githubusercontent.com/serverlessworkflow/catalog/main/functions/log/1.0.0/function.yaml diff --git a/examples/call-custom-function-inline.yaml b/examples/call-custom-function-inline.yaml index dde1c452..a450a2ef 100644 --- a/examples/call-custom-function-inline.yaml +++ b/examples/call-custom-function-inline.yaml @@ -2,7 +2,7 @@ document: dsl: '1.0.0' namespace: samples name: call-custom-function-inline - version: '1.0.0' + version: '0.1.0' use: functions: getPetById: diff --git a/examples/call-grpc.yaml b/examples/call-grpc.yaml index 9c3dde83..9f9a7e6d 100644 --- a/examples/call-grpc.yaml +++ b/examples/call-grpc.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' 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 4163f308..9ac1852b 100644 --- a/examples/call-http-endpoint-interpolation-shorthand.yaml +++ b/examples/call-http-endpoint-interpolation-shorthand.yaml @@ -1,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: call-http-shorthand-endpoint - version: '1.0.0' + version: '0.1.0' do: - getPet: call: http diff --git a/examples/call-http-endpoint-interpolation.yaml b/examples/call-http-endpoint-interpolation.yaml index ff3efc6f..bb014ad7 100644 --- a/examples/call-http-endpoint-interpolation.yaml +++ b/examples/call-http-endpoint-interpolation.yaml @@ -1,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: call-http-shorthand-endpoint - version: '1.0.0' + version: '0.1.0' do: - getPet: call: http diff --git a/examples/call-openapi.yaml b/examples/call-openapi.yaml index 1f1a025c..90826f93 100644 --- a/examples/call-openapi.yaml +++ b/examples/call-openapi.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: openapi-example version: '0.1.0' diff --git a/examples/conditional-task.yaml b/examples/conditional-task.yaml index b341a7ed..b0981e8b 100644 --- a/examples/conditional-task.yaml +++ b/examples/conditional-task.yaml @@ -2,7 +2,7 @@ document: dsl: '1.0.0' namespace: default name: conditional-task - version: '1.0.0' + version: '0.1.0' do: - raiseErrorIfUnderage: if: .customer.age < 18 diff --git a/examples/do-multiple.yaml b/examples/do-multiple.yaml index b503247f..032d1dc0 100644 --- a/examples/do-multiple.yaml +++ b/examples/do-multiple.yaml @@ -1,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: call-http-shorthand-endpoint - version: '1.0.0' + version: '0.1.0' do: - getPet: call: http diff --git a/examples/do-single.yaml b/examples/do-single.yaml index 4163f308..9ac1852b 100644 --- a/examples/do-single.yaml +++ b/examples/do-single.yaml @@ -1,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: call-http-shorthand-endpoint - version: '1.0.0' + version: '0.1.0' do: - getPet: call: http diff --git a/examples/emit.yaml b/examples/emit.yaml index 8c3cdbef..82fe2823 100644 --- a/examples/emit.yaml +++ b/examples/emit.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: emit version: '0.1.0' diff --git a/examples/for.yaml b/examples/for.yaml index c0e11b59..333fcb25 100644 --- a/examples/for.yaml +++ b/examples/for.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: for-example version: '0.1.0' diff --git a/examples/fork.yaml b/examples/fork.yaml index d74e059a..41934624 100644 --- a/examples/fork.yaml +++ b/examples/fork.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: fork-example version: '0.1.0' diff --git a/examples/listen-to-all.yaml b/examples/listen-to-all.yaml index daa4a040..c865d121 100644 --- a/examples/listen-to-all.yaml +++ b/examples/listen-to-all.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: listen-to-all version: '0.1.0' diff --git a/examples/listen-to-any.yaml b/examples/listen-to-any.yaml index 58ff4bc2..5c959fdd 100644 --- a/examples/listen-to-any.yaml +++ b/examples/listen-to-any.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' 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 c723edbf..00089e15 100644 --- a/examples/listen-to-one.yaml +++ b/examples/listen-to-one.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' 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 3f331c8d..c0a78740 100644 --- a/examples/mock-service-extension.yaml +++ b/examples/mock-service-extension.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: sample-workflow version: 0.1.0 diff --git a/examples/raise-inline copy.yaml b/examples/raise-inline copy.yaml index fd8a2a06..b190c877 100644 --- a/examples/raise-inline copy.yaml +++ b/examples/raise-inline copy.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: raise-not-implemented version: '0.1.0' diff --git a/examples/raise-reusable.yaml b/examples/raise-reusable.yaml index e945dfb9..5724ff6e 100644 --- a/examples/raise-reusable.yaml +++ b/examples/raise-reusable.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: raise-not-implemented version: '0.1.0' diff --git a/examples/run-container.yaml b/examples/run-container.yaml index 45c3b99a..5c7cfc98 100644 --- a/examples/run-container.yaml +++ b/examples/run-container.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: run-container version: '0.1.0' diff --git a/examples/run-script-with-arguments.yaml b/examples/run-script-with-arguments.yaml index 8fb4676c..2f4c02a6 100644 --- a/examples/run-script-with-arguments.yaml +++ b/examples/run-script-with-arguments.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: samples name: run-script-with-arguments version: 0.1.0 diff --git a/examples/run-subflow.yaml b/examples/run-subflow.yaml index a2219345..dea9cf15 100644 --- a/examples/run-subflow.yaml +++ b/examples/run-subflow.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: run-subflow version: '0.1.0' diff --git a/examples/schedule-cron.yaml b/examples/schedule-cron.yaml index 10e10e7b..330fe7a7 100644 --- a/examples/schedule-cron.yaml +++ b/examples/schedule-cron.yaml @@ -1,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: cron-schedule - version: '1.0.0' + version: '0.1.0' schedule: cron: 0 0 * * * do: diff --git a/examples/schedule-event-driven.yaml b/examples/schedule-event-driven.yaml index 37386a82..0913796f 100644 --- a/examples/schedule-event-driven.yaml +++ b/examples/schedule-event-driven.yaml @@ -1,8 +1,8 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: examples name: event-driven-schedule - version: '1.0.0' + version: '0.1.0' schedule: on: one: diff --git a/examples/set.yaml b/examples/set.yaml index 35857943..161c16b9 100644 --- a/examples/set.yaml +++ b/examples/set.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: set version: '0.1.0' diff --git a/examples/switch-then-string.yaml b/examples/switch-then-string.yaml index 6bba5a2c..547e94cf 100644 --- a/examples/switch-then-string.yaml +++ b/examples/switch-then-string.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' 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 f32de3f0..7033562b 100644 --- a/examples/try-catch-retry-inline.yaml +++ b/examples/try-catch-retry-inline.yaml @@ -2,7 +2,7 @@ document: dsl: '1.0.0' namespace: default name: try-catch-retry - version: '1.0.0' + version: '0.1.0' do: - tryGetPet: try: diff --git a/examples/try-catch-retry-reusable.yaml b/examples/try-catch-retry-reusable.yaml index 3b920720..76b1b69e 100644 --- a/examples/try-catch-retry-reusable.yaml +++ b/examples/try-catch-retry-reusable.yaml @@ -2,7 +2,7 @@ document: dsl: '1.0.0' namespace: default name: try-catch-retry - version: '1.0.0' + version: '0.1.0' use: retries: default: diff --git a/examples/try-catch-then.yaml b/examples/try-catch-then.yaml index a0ca8d3b..2facecaf 100644 --- a/examples/try-catch-then.yaml +++ b/examples/try-catch-then.yaml @@ -2,7 +2,7 @@ document: dsl: '1.0.0' namespace: default name: try-catch - version: '1.0.0' + version: '0.1.0' do: - tryGetPet: try: diff --git a/examples/try-catch.yaml b/examples/try-catch.yaml index b54a7182..2266067e 100644 --- a/examples/try-catch.yaml +++ b/examples/try-catch.yaml @@ -2,7 +2,7 @@ document: dsl: '1.0.0' namespace: default name: try-catch - version: '1.0.0' + version: '0.1.0' do: - tryGetPet: try: diff --git a/examples/wait-duration-inline.yaml b/examples/wait-duration-inline.yaml index 0f176c96..f854275e 100644 --- a/examples/wait-duration-inline.yaml +++ b/examples/wait-duration-inline.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' 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 ac6a1c51..56e32b4d 100644 --- a/examples/wait-duration-iso8601.yaml +++ b/examples/wait-duration-iso8601.yaml @@ -1,5 +1,5 @@ document: - dsl: '1.0.0-alpha3' + dsl: '1.0.0' namespace: test name: wait-duration-8601 version: '0.1.0' diff --git a/schema/workflow.yaml b/schema/workflow.yaml index 949420de..11d02c04 100644 --- a/schema/workflow.yaml +++ b/schema/workflow.yaml @@ -1,4 +1,4 @@ -$id: https://serverlessworkflow.io/schemas/1.0.0-alpha3/workflow.yaml +$id: https://serverlessworkflow.io/schemas/1.0.0/workflow.yaml $schema: https://json-schema.org/draft/2020-12/schema description: Serverless Workflow DSL - Workflow Schema. type: object diff --git a/use-cases/automated-data-backup/README.md b/use-cases/automated-data-backup/README.md index bea0fa4c..25906a71 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.0-alpha3' + dsl: '1.0.0' namespace: default name: sql-export-to-minio version: 0.1.2