Record
The Record data type in Snappit represents a collection of key-value pairs, similar to JavaScript objects. It allows users to define structured data where each field has a specific name (key) and an associated value that conforms to a defined type.
Records are especially useful when grouping related data under a single input—such as form fields, configuration sets, or object-style data structures.​
🧱 Key Characteristics​
- Represents a set of named fields, each with its own data type.
- Behaves like a JavaScript object, enabling nested and structured input.
- Keys are static and defined in the step schema; values can be entered or defaulted.
warning
⚠️ Type Safety​
Each value in a Record must match its defined field type. Snappit ensures that the structure and types remain valid, just like a typed object in JavaScript.
By using the Record data type, you can organize related fields in a clear, object-like structure—greatly enhancing the flexibility and clarity of your workflow inputs.