โ† API reference
Mutation / scripting

validateLua

Type-check Lua source against the ambient typedef for the chosen role without persisting anything. Safe to call from editors on every keystroke.

Arguments

Lua source + role + options

Returns ValidateLuaResult!

Scalar fields at a glance

successBoolean!
languageString
โ†— View the complete ValidateLuaResult type

Explore in a view

Scripting
View exact SDL
"""
Type-check Lua source against the ambient typedef for the chosen role without persisting anything. Safe to call from editors on every keystroke.
"""
validateLua(
  """Lua source + role + options"""
  input: ValidateLuaInput!
): ValidateLuaResult! @topic(names: ["scripting"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.