Skip to content

Fix three dsl-reference.md / schema/workflow.yaml mismatches#1160

Merged
cdavernas merged 1 commit into
serverlessworkflow:mainfrom
dimastbk:fix/dsl-reference-schema-mismatches
Jun 29, 2026
Merged

Fix three dsl-reference.md / schema/workflow.yaml mismatches#1160
cdavernas merged 1 commit into
serverlessworkflow:mainfrom
dimastbk:fix/dsl-reference-schema-mismatches

Conversation

@dimastbk

Copy link
Copy Markdown
Contributor

Resolves the substantive divergences reported in #1156:

  • Add the evaluate workflow property (language, mode) to schema/workflow.yaml. It is documented in dsl-reference.md and referenced by dsl.md (evaluate.language) but was missing from the schema.
  • Remove certificate authentication from dsl-reference.md (TOC entry, authentication properties-table row, and the empty section). It is not defined in the schema, dsl.md, examples, or the CTK.
  • Rename the MCP client schema property description -> version. The schema declared required: [ name, version ] but defined no version property (it was mis-keyed as description).

Also align the Evaluate table in dsl-reference.md: language and mode are now no (both have defaults, so they are optional), matching the schema.

@dimastbk dimastbk requested a review from ricardozanini as a code owner June 29, 2026 10:03
Copilot AI review requested due to automatic review settings June 29, 2026 10:03
@dimastbk dimastbk requested a review from cdavernas as a code owner June 29, 2026 10:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aligns the Serverless Workflow DSL reference documentation with the authoritative JSON Schema by fixing a few concrete mismatches identified in #1156.

Changes:

  • Added the top-level evaluate workflow property (language, mode) to schema/workflow.yaml.
  • Removed Certificate authentication from dsl-reference.md (TOC, auth properties table, and empty section).
  • Fixed the MCP client schema property name by renaming descriptionversion to match required: [ name, version ].

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
schema/workflow.yaml Adds missing evaluate definition and corrects MCP client version property key.
dsl-reference.md Removes unsupported Certificate auth docs and marks Evaluate fields optional to match schema defaults.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread dsl-reference.md Outdated
|:--|:---:|:---:|:---|
| language | `string` | `yes` | The language used for writting runtime expressions.<br>*Defaults to `jq`.* |
| mode | `string` | `yes` | The runtime expression evaluation mode.<br>*Supported values are:*<br>- `strict`: requires all expressions to be enclosed within `${ }` for proper identification and evaluation.<br>- `loose`: evaluates any value provided. If the evaluation fails, it results in a string with the expression as its content.<br>*Defaults to `strict`.*
| language | `string` | `no` | The language used for writting runtime expressions.<br>*Defaults to `jq`.* |
Resolves the substantive divergences reported in serverlessworkflow#1156:

- Add the `evaluate` workflow property (`language`, `mode`) to
  schema/workflow.yaml. It is documented in dsl-reference.md and
  referenced by dsl.md (`evaluate.language`) but was missing from the
  schema.
- Remove certificate authentication from dsl-reference.md (TOC entry,
  authentication properties-table row, and the empty section). It is
  not defined in the schema, dsl.md, examples, or the CTK.
- Rename the MCP client schema property `description` -> `version`.
  The schema declared `required: [ name, version ]` but defined no
  `version` property (it was mis-keyed as `description`).

Also align the Evaluate table in dsl-reference.md: `language` and `mode`
are now `no` (both have defaults, so they are optional), matching the
schema.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Dmitriy <dimastbk@proton.me>
@dimastbk dimastbk force-pushed the fix/dsl-reference-schema-mismatches branch from 739d247 to 00a8198 Compare June 29, 2026 10:08

@cdavernas cdavernas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Cheers ❤️

@cdavernas cdavernas merged commit c3b5d8c into serverlessworkflow:main Jun 29, 2026
3 checks passed
@dimastbk dimastbk deleted the fix/dsl-reference-schema-mismatches branch June 29, 2026 13:52
@ricardozanini ricardozanini linked an issue Jun 29, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typo in mcp.client.version

4 participants