Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/validation/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.3/workflow.yaml";
const workflowSchemaId = "https://open-workflow-specification.org/schemas/1.0.3/workflow.yaml";
const schemaPath = "../../../schema";
export const defaultEncoding = "utf-8";

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
[![license](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/serverlessworkflow/specification/blob/master/LICENSE)
[<img alt="GitHub Release" src="https://img.shields.io/github/v/release/serverlessworkflow/specification?label=Release">](https://github.com/serverlessworkflow/specification/releases/latest)
<br>
[<img src="http://img.shields.io/badge/Website-blue?style=flat&logo=google-chrome&logoColor=white">](https://serverlessworkflow.io/)
[<img src="http://img.shields.io/badge/Slack-4A154B?style=flat&logo=slack&logoColor=white">](https://cloud-native.slack.com/messages/open-workflow)
[<img src="https://img.shields.io/badge/Website-blue?style=flat&logo=google-chrome&logoColor=white">](https://open-workflow-specification.org/)
[<img src="https://img.shields.io/badge/Slack-4A154B?style=flat&logo=slack&logoColor=white">](https://cloud-native.slack.com/messages/open-workflow)
[<img src="https://img.shields.io/badge/LinkedIn-blue?logo=linkedin&logoColor=white">](https://www.linkedin.com/company/serverless-workflow/)
[<img src="https://img.shields.io/twitter/follow/CNCFWorkflow?style=social">](https://twitter.com/CNCFWorkflow)

Expand Down
2 changes: 1 addition & 1 deletion community/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Here you can find information about our:

- [Contributors](contributors.md): People and companies contributing to the
Serverless workflow specification and ecosystem
- [Presentations](https://serverlessworkflow.io/): Community presentations about the project (see the 'Resources' section)
- [Presentations](https://open-workflow-specification.org/): Community presentations about the project (see the 'Resources' section)
4 changes: 2 additions & 2 deletions ctk/features/raise.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Feature: Raise Task
raise:
error:
status: 400
type: https://serverlessworkflow.io/errors/types/compliance
type: https://open-workflow-specification.org/errors/types/compliance
title: Compliance Error
"""
When the workflow is executed
Then the workflow should fault with error:
"""yaml
status: 400
type: https://serverlessworkflow.io/errors/types/compliance
type: https://open-workflow-specification.org/errors/types/compliance
title: Compliance Error
instance: /do/0/raiseError
"""
4 changes: 2 additions & 2 deletions ctk/features/try.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Feature: Try Task
catch:
errors:
with:
type: https://serverlessworkflow.io/dsl/errors/types/communication
type: https://open-workflow-specification.org/dsl/errors/types/communication
status: 404
as: err
do:
Expand Down Expand Up @@ -71,7 +71,7 @@ Feature: Try Task
catch:
errors:
with:
type: https://serverlessworkflow.io/dsl/errors/types/communication
type: https://open-workflow-specification.org/dsl/errors/types/communication
status: 503
as: err
do:
Expand Down
32 changes: 16 additions & 16 deletions dsl-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ The [A2A Call](#a2a-call) enables workflows to interact with AI agents described
> [!NOTE]
> The `security` and `securitySchemes` fields of the AgentCard contain authentication requirements and schemes for when communicating with the agent.
>
> On success the output is the JSON-RPC result. On failure runtimes must raise an error with type [https://serverlessworkflow.io/spec/1.0.0/errors/runtime](https://github.com/serverlessworkflow/specification/blob/main/dsl-reference.md#standard-error-types).
> On success the output is the JSON-RPC result. On failure runtimes must raise an error with type [https://open-workflow-specification.org/spec/1.0.0/errors/runtime](#standard-error-types).
>
> For `message/stream` and `tasks/resubscribe` methods the output is a sequentially ordered array of all the result objects.

Expand Down Expand Up @@ -550,7 +550,7 @@ The [MCP Call](#mcp-call) enables workflows to interact with [Model Context Prot
> In most cases, client libraries handle this initialization automatically.

> [!NOTE]
> On success the output of the call is the JSON-RPC result. On failure, runtimes must raise an error with type [https://serverlessworkflow.io/spec/1.0.0/errors/runtime](https://github.com/serverlessworkflow/specification/blob/main/dsl-reference.md#standard-error-types).
> On success the output of the call is the JSON-RPC result. On failure, runtimes must raise an error with type [https://open-workflow-specification.org/spec/1.0.0/errors/runtime](#standard-error-types).

###### Examples

Expand Down Expand Up @@ -1228,7 +1228,7 @@ do:
catch:
errors:
with:
type: https://serverlessworkflow.io.io/dsl/errors/types/communication
type: https://open-workflow-specification.org/dsl/errors/types/communication
Comment thread
dgutierr marked this conversation as resolved.
status: 503
as: error
retry:
Expand Down Expand Up @@ -1436,7 +1436,7 @@ The data carried by the cloud event that notifies that a workflow has faulted.
name: orderPetWorkflow-ix7iryakiem8j.samples
faultedAt: '2024-07-26T16:59:57-05:00'
error:
type: https://serverlessworkflow.io/spec/1.0.0/errors/communication
type: https://open-workflow-specification.org/spec/1.0.0/errors/communication
title: Service Not Available
status: 503
```
Expand Down Expand Up @@ -1623,7 +1623,7 @@ workflow: orderPetWorkflow-ix7iryakiem8j.samples
task: '/do/1/initialize'
faultedAt: '2024-07-26T16:59:57-05:00'
error:
type: https://serverlessworkflow.io/spec/1.0.0/errors/communication
type: https://open-workflow-specification.org/spec/1.0.0/errors/communication
title: Service Not Available
status: 503
```
Expand Down Expand Up @@ -2089,7 +2089,7 @@ Defines the [Problem Details RFC](https://datatracker.ietf.org/doc/html/rfc7807)
#### Examples

```yaml
type: https://serverlessworkflow.io/spec/1.0.0/errors/communication
type: https://open-workflow-specification.org/spec/1.0.0/errors/communication
title: Service Not Available
status: 503
```
Expand All @@ -2100,14 +2100,14 @@ Standard error types serve the purpose of categorizing errors consistently acros

| Type | Status¹ | Description |
|------|:-------:|-------------|
| [https://serverlessworkflow.io/spec/1.0.0/errors/configuration](#) | `400` | Errors resulting from incorrect or invalid configuration settings, such as missing or misconfigured environment variables, incorrect parameter values, or configuration file errors. |
| [https://serverlessworkflow.io/spec/1.0.0/errors/validation](#) | `400` | Errors arising from validation processes, such as validation of input data, schema validation failures, or validation constraints not being met. These errors indicate that the provided data or configuration does not adhere to the expected format or requirements specified by the workflow. |
| [https://serverlessworkflow.io/spec/1.0.0/errors/expression](#) | `400` | Errors occurring during the evaluation of runtime expressions, such as invalid syntax or unsupported operations. |
| [https://serverlessworkflow.io/spec/1.0.0/errors/authentication](#) | `401` | Errors related to authentication failures. |
| [https://serverlessworkflow.io/spec/1.0.0/errors/authorization](#) | `403` | Errors related to unauthorized access attempts or insufficient permissions to perform certain actions within the workflow. |
| [https://serverlessworkflow.io/spec/1.0.0/errors/timeout](#) | `408` | Errors caused by timeouts during the execution of tasks or during interactions with external services. |
| [https://serverlessworkflow.io/spec/1.0.0/errors/communication](#) | `500` | Errors encountered while communicating with external services, including network errors, service unavailable, or invalid responses. |
| [https://serverlessworkflow.io/spec/1.0.0/errors/runtime](#) | `500` | Errors occurring during the runtime execution of a workflow, including unexpected exceptions, errors related to resource allocation, or failures in handling workflow tasks. These errors typically occur during the actual execution of workflow components and may require runtime-specific handling and resolution strategies. |
| [https://open-workflow-specification.org/spec/1.0.0/errors/configuration](#) | `400` | Errors resulting from incorrect or invalid configuration settings, such as missing or misconfigured environment variables, incorrect parameter values, or configuration file errors. |
| [https://open-workflow-specification.org/spec/1.0.0/errors/validation](#) | `400` | Errors arising from validation processes, such as validation of input data, schema validation failures, or validation constraints not being met. These errors indicate that the provided data or configuration does not adhere to the expected format or requirements specified by the workflow. |
| [https://open-workflow-specification.org/spec/1.0.0/errors/expression](#) | `400` | Errors occurring during the evaluation of runtime expressions, such as invalid syntax or unsupported operations. |
| [https://open-workflow-specification.org/spec/1.0.0/errors/authentication](#) | `401` | Errors related to authentication failures. |
| [https://open-workflow-specification.org/spec/1.0.0/errors/authorization](#) | `403` | Errors related to unauthorized access attempts or insufficient permissions to perform certain actions within the workflow. |
| [https://open-workflow-specification.org/spec/1.0.0/errors/timeout](#) | `408` | Errors caused by timeouts during the execution of tasks or during interactions with external services. |
| [https://open-workflow-specification.org/spec/1.0.0/errors/communication](#) | `500` | Errors encountered while communicating with external services, including network errors, service unavailable, or invalid responses. |
| [https://open-workflow-specification.org/spec/1.0.0/errors/runtime](#) | `500` | Errors occurring during the runtime execution of a workflow, including unexpected exceptions, errors related to resource allocation, or failures in handling workflow tasks. These errors typically occur during the actual execution of workflow components and may require runtime-specific handling and resolution strategies. |

¹ *Default value. The `status code` that best describe the error should always be used.*

Expand Down Expand Up @@ -2469,7 +2469,7 @@ To substitute a variable within a URI, use the `{}` syntax. The identifier insid
This has the following limitations compared to runtime expressions:

- Only top-level properties can be interpolated within strings, thus identifiers are treated verbatim. This means that `{pet.id}` will be replaced with the value of the `"pet.id"` property, not the value of the `id` property of the `pet` property.
- The referenced variable must be of type `string`, `number`, `boolean`, or `null`. If the variable is of a different type an error with type `https://https://serverlessworkflow.io/spec/1.0.0/errors/expression` and status `400` will be raised.
- The referenced variable must be of type `string`, `number`, `boolean`, or `null`. If the variable is of a different type an error with type `https://open-workflow-specification.org/spec/1.0.0/errors/expression` and status `400` will be raised.
- [Runtime expression arguments](./dsl.md#runtime-expression-arguments) are not available for string substitution.

#### Examples
Expand Down Expand Up @@ -2762,7 +2762,7 @@ do:
emit:
event:
with:
source: https://serverlessworkflow.io/samples
source: https://open-workflow-specification.org/samples
type: io.serverlessworkflow.samples.asyncapi.message.consumed.v1
data:
message: '${ $message }'
Expand Down
Loading
Loading