workflow-editor

Validate Code Execution

Validate Python code for a code-execution node.

Performs static analysis (AST + ruff) without executing the code. Returns diagnostics, and suggestions for params/code/output_schema sync.

post/v3/workflow-editor/code/validate

Request

  • Base URL
    https://api.mentium.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Headers

mentium-workspace-idstring nullable

Request body

codestring required

Python source code to validate.

paramsobject

Current config.params keys and their values/variable refs.

output_schemaobject nullable

Current output schema (JSON schema) for the node.

Response

Successful Response

validboolean required
suggested_paramsobject nullable
suggested_codestring nullable
suggested_output_schemaobject nullable

Changes

No recorded changes to this operation across all 2 revisions of this API.