Require Fields
Emit an error if any listed field is missing or null on the packet.
1 min readNode
Overview
| Property | Value |
|---|---|
| Node ID | core/require-fields |
| Kind | action |
| Module | core-flowdsl |
| Repo | go-flowdsl |
| Handler | github.com/redelay/go-flowdsl/nodes/core.RequireFields |
| Icon | lucide:list-checks |
| Color | #10b981 |
| Tags | validation, 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
| Property | Type | Required | Default | UI Group | Description |
|---|---|---|---|---|---|
fields | array | yes | [] | — |
Example
# 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?