Skip to content

Subflow with input type YAML are not serializing properly the data #13007

@tchiotludo

Description

@tchiotludo

Parent flow:

id: main
namespace: lde.subflow.yaml

tasks:
  - id: hello
    type: io.kestra.plugin.core.flow.Subflow
    namespace: lde.subflow.yaml
    flowId: subflow
    inputs:
      people: 
        - first: "John"
          last: "Doe"
        - first: "Jane"
          last: "Smith"

Subflow:

id: subflow
namespace: lde.subflow.yaml

inputs: 
  - id: people 
    type: YAML

tasks:
  - id: hello
    type: io.kestra.plugin.core.log.Log
    message: "{{ inputs.people }}"

Display log:

[{"last=Doe":"","first=John":""},{"first=Jane":"","last=Smith":""}]

should a proper json string, showing a proper serialization.

Metadata

Metadata

Assignees

Labels

area/backendNeeds backend code changesbugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions