Require Fields

Emit an error if any listed field is missing or null on the packet.

1 min readNode

Overview

PropertyValue
Node IDcore/require-fields
Kindaction
Modulecore-flowdsl
Repogo-flowdsl
Handlergithub.com/redelay/go-flowdsl/nodes/core.RequireFields
Iconlucide:list-checks
Color#10b981
Tagsvalidation, fields

Description

Fails the RUN when any listed field is missing or null. Behind redelay/http-endpoint that answers 500 "flow execution failed" and the missing-field list reaches only the flowexec run log — the caller cannot tell bad input from a crash. For required request fields use core/json-schema-validate (required: [...]) and wire its invalid output to a terminal with status_code: 422. Keep this node for internal invariants between steps.

Outputs

  • out — (no description)

Settings

PropertyTypeRequiredDefaultUI GroupDescription
fieldsarrayyes[]—

Example

yaml
# Use this node in a flow:
nodes:
  - id: my_step
    name: My Step
    kind: action
    action_ref: core/require-fields
    config:
      fields: []
Was this page helpful?