← All native models

Native model

workspace_handler_constraint

Declare a named workspace_handler_constraint value and reference it as workspace_handler_constraint.your_name. Models have no separate platform identity or lifecycle.

Topics: Surfaces

Fields

Adds an input restriction to a handler. The server enforces it on every call, including direct API calls. Use it for arguments without a visible form field.

object
componentRequired
string
Value
"handler-constraint"
maximumOptional

Highest allowed number, inclusive, enforced by the server and the form.

number
maxItemsOptional

Maximum number of list items, enforced by the server and the form.

integer
Minimum
0
maxLengthOptional

Maximum text length, enforced by the server and the form.

integer
Minimum
0
minimumOptional

Lowest allowed number, inclusive, enforced by the server and the form.

number
minItemsOptional

Minimum number of list items, enforced by the server and the form.

integer
Minimum
0
minLengthOptional

Minimum text length, enforced by the server and the form.

integer
Minimum
0
pathRequired

Path of the handler input to restrict.

string
Minimum length
1
requiredOptional

Set to true to require a value for this Lua handler input. The server enforces it on every call.

boolean
Allowed values
[true]

Only the fields listed here are accepted.