Skip to content

Should validate a required input field when it is required by the workflow #1744

Description

@mathecruz

Context

Give an workflow:

document:
  dsl: '1.1.0'
  namespace: qe
  name: greet
  version: '1.1.0'

input:
  schema:
    format: json
    document:
      type: object
      required:
        - name
      properties:
        name:
          type: string

do:
  - buildGreeting:
      set:
        message: '${ "Hello, " + .name + "!" }'

When running the workflow with the input {} (empty object), then the workflow executes with the following output Hello, !.

Expected

I expect to have a validation and receive an error when executing the workflow, because the .name is a required and necessary input for the workflow.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions