StateMind.AI · Schema
ValidateRequest
A validation job submitted by an agent.
Artificial IntelligenceConcept DesignCode GenerationMaritime RiskExplainable AI
Properties
| Name | Type | Description |
|---|---|---|
| code | string | The source to check, as a whole file where possible: diagnostics carry the line and column of the text you send, and a fragment hides the imports and definitions the type check needs. A deployment may |
| language | object | The language of the code. A service that does not handle it refuses the request rather than guessing; the enum is shared across services, so it lists more than any one of them accepts. |
| mode | object | How much work to do, cheapest first. Each mode contains the one before it, so repair also reports everything static found. Only execute runs the code, and only repair and execute can bill or change th |
| options | object | Tuning knobs. Most of them only take effect in the mode that does the corresponding work; see each field. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/statemind-ai/json-schema/statemind-ai-validate-request-schema.json",
"title": "ValidateRequest",
"description": "A validation job submitted by an agent.",
"x-generated": "2026-11-25",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/statemind-ai-openapi.json#/components/schemas/ValidateRequest",
"properties": {
"code": {
"type": "string",
"maxLength": 200000,
"minLength": 1,
"title": "Code",
"description": "The source to check, as a whole file where possible: diagnostics carry the line and column of the text you send, and a fragment hides the imports and definitions the type check needs. A deployment may accept fewer bytes than the 200000 here."
},
"language": {
"$ref": "#/$defs/Language",
"description": "The language of the code. A service that does not handle it refuses the request rather than guessing; the enum is shared across services, so it lists more than any one of them accepts.",
"default": "python"
},
"mode": {
"$ref": "#/$defs/Mode",
"description": "How much work to do, cheapest first. Each mode contains the one before it, so repair also reports everything static found. Only execute runs the code, and only repair and execute can bill or change the source.",
"default": "static"
},
"options": {
"$ref": "#/$defs/Options",
"description": "Tuning knobs. Most of them only take effect in the mode that does the corresponding work; see each field."
}
},
"type": "object",
"required": [
"code"
],
"$defs": {
"Language": {
"type": "string",
"enum": [
"python",
"javascript",
"typescript",
"html",
"sql",
"solidity",
"other"
],
"title": "Language",
"description": "Source languages a validator can accept."
},
"Mode": {
"type": "string",
"enum": [
"static",
"repair",
"execute"
],
"title": "Mode",
"description": "How much work the service is allowed to do.\n\n``static``\n Never executes the submitted code. Parsing, linting and security\n scanning only. This is the default and the only mode that is safe to\n expose without a container sandbox.\n``repair``\n Static mode plus deterministic auto-fixes and refactors.\n``execute``\n Repair plus running the code inside a sandbox to prove it works."
},
"Options": {
"properties": {
"timeout_s": {
"anyOf": [
{
"type": "number",
"maximum": 60.0,
"exclusiveMinimum": 0.0
},
{
"type": "null"
}
],
"title": "Timeout S",
"description": "Wall-clock budget for running the code. Omitted means the service's own default (MSVC_DEFAULT_TIMEOUT_S). Only execute mode runs anything; a deployment may cap this below the 60 the schema allows and refuses a larger value."
},
"max_iterations": {
"type": "integer",
"maximum": 10.0,
"minimum": 1.0,
"title": "Max Iterations",
"description": "How many fix/verify rounds the repair loop may take. Ignored in static mode, which changes nothing.",
"default": 3
},
"transpile_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Transpile To",
"description": "Target language for a transpiled copy, e.g. 'javascript'. The copy is made from the code as it ends up, so in repair and execute mode it translates the repaired source rather than the submitted one."
},
"expected_output": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Expected Output",
"description": "Exact stdout the code must produce in execute mode. A mismatch is an 'expected-output' diagnostic and makes the response invalid, even when the program exits cleanly. Ignored in the other modes, which produce no output."
},
"optimize": {
"type": "boolean",
"title": "Optimize",
"description": "Run constant folding / dead-code elimination. Off by default: the optimiser rewrites the program, and a rewrite is only returned when it provably keeps every effectful construct.",
"default": false
}
},
"type": "object",
"title": "Options",
"description": "Per-request tuning knobs."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/statemind-ai-validate-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.