#291889·kibana

Workflows] [YAML editor] unexpected YAML editor error `expected number, received string` for some numeric step values

Author: andrew-goldsteinCreated Sep 17, 2026Updated Sep 17, 2026
LabelsbugTeam:One Workflow

[Workflows] [YAML editor] unexpected YAML editor error expected number, received string for some numeric step values

The Workflows YAML editor displays an unexpected error expected number, received string for some numeric step values, as illustrated by the following screenshot:

unexpected-validation-error

Steps to reproduce:

  1. Open Workflows and create a workflow with this YAML:
yaml
name: Editor type investigation
enabled: true
triggers:
  - type: manual
outputs:
  - name: count
    type: number
steps:
  - name: set_count
    type: data.set
    with:
      n: 7
  - name: return
    type: workflow.output
    with:
      count: "${{ steps.set_count.output.n }}"
  1. Open the YAML editor and wait for validation.

Expected result

  • No type error on count. A Liquid template cannot be given a static type at edit time, so it should be skipped the same way step-property validation skips isTemplateReference values.
  • A literal count: 42 should still type-check.
  • At runtime, ${{ }} still emits a number and output validation still accepts it.

Actual results

  • The count line is underlined, the return step is marked “has errors”, and the problems panel shows:

    "count": expected number, received string (invalidWorkflowOutput, Ln 17)

editor-investigation-actual

  • The details of the error are displayed in the screenshot below:

unexpected-validation-error

Kibana version:

main / v9.6.0

Original install method (e.g. download page, yum, from source, etc.):

From source