DocumentationData Types and Validation

Data Types and Validation

Learn the supported data types, key rules, depth limits, and raw JSON checks.

Data Types and Validation

The data editor supports a small set of types and enforces validation rules to keep templates stable.

Supported Types

  • String
  • Number
  • Boolean
  • Array
  • Object

Key Rules

  • Keys are required for object fields.
  • Keys must be valid identifiers: letters or underscores first, then letters, numbers, or underscores.

Arrays and Objects

  • Arrays use a schema to define item types.
  • Object fields can nest other objects or arrays.

Depth Limit

Nested structures are limited to 5 levels. When the limit is reached, array and object types are disabled to prevent deep recursion.

Raw JSON Validation

In Raw mode, the editor checks that:

  • JSON syntax is valid.
  • The root is an object.
  • Field keys and depth limits are valid.