Skip to content

Cast to Schema Node

Structs

Checks a struct against a JSON schema and hands it on carrying that shape

struct_cast_to_schemastd
Inputs3
Outputs4
Security exposure10/10
Packagestd

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

SecurityAttack surface and exposure impact.
10/10High
PrivacyPotential sensitivity of processed data.
10/10High
PerformanceRuntime or resource pressure.
10/10High
GovernancePolicy, audit, or compliance impact.
10/10High
ReliabilityOperational stability considerations.
10/10High
CostExternal or compute cost impact.
10/10High

Input Pins

3

In

Execution
exec_in

Run the cast

Struct

Struct
struct_in

The struct to cast. Whatever schema it arrives with is ignored

objectobject0 fields
No named fields in this schema.

Schema

String
schema

JSON Schema or OpenAI function definition describing the target shape

Output Pins

4

Success

Execution
exec_out

The value fits the shape

Struct

Struct
struct_out

The same value, now declaring the target shape

objectobject0 fields
No named fields in this schema.

Failed

Execution
error

The value does not fit the shape

Reason

String
error_message

What did not fit, naming the field

Node Info

Internal name
struct_cast_to_schema
Category
Structs