StateMind.AI · Schema
ValidateResponse
The result an agent gets back and pays for.
Artificial IntelligenceConcept DesignCode GenerationMaritime RiskExplainable AI
Properties
| Name | Type | Description |
|---|---|---|
| valid | boolean | |
| score | number | |
| diagnostics | array | |
| security | array | |
| fixes | array | |
| fixed_code | object | |
| transpiled | object | |
| runtime | object | |
| meta | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/statemind-ai/json-schema/statemind-ai-validate-response-schema.json",
"title": "ValidateResponse",
"description": "The result an agent gets back and pays for.",
"x-generated": "2026-11-25",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/statemind-ai-openapi.json#/components/schemas/ValidateResponse",
"properties": {
"valid": {
"type": "boolean",
"title": "Valid"
},
"score": {
"type": "number",
"maximum": 1.0,
"minimum": 0.0,
"title": "Score"
},
"diagnostics": {
"items": {
"$ref": "#/$defs/Diagnostic"
},
"type": "array",
"title": "Diagnostics"
},
"security": {
"items": {
"$ref": "#/$defs/SecurityFinding"
},
"type": "array",
"title": "Security"
},
"fixes": {
"items": {
"type": "string"
},
"type": "array",
"title": "Fixes"
},
"fixed_code": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Fixed Code"
},
"transpiled": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Transpiled"
},
"runtime": {
"$ref": "#/$defs/RuntimeReport"
},
"meta": {
"$ref": "#/$defs/Meta"
}
},
"type": "object",
"required": [
"valid",
"score",
"meta"
],
"$defs": {
"AIReport": {
"properties": {
"consulted": {
"type": "boolean",
"title": "Consulted",
"default": false
},
"backend": {
"type": "string",
"title": "Backend",
"default": ""
},
"calls": {
"type": "integer",
"title": "Calls",
"default": 0
},
"duration_ms": {
"type": "integer",
"title": "Duration Ms",
"default": 0
},
"outcome": {
"type": "string",
"title": "Outcome",
"default": "not-consulted"
},
"detail": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Detail"
}
},
"type": "object",
"title": "AIReport",
"description": "What the optional AI refinement backend contributed.\n\nAbsent from a response when no backend is configured. Present but with\n``consulted=False`` when the deterministic fixers settled the code on their\nown, so a caller can tell \"the model was never needed\" apart from \"the\nmodel was asked and came back empty-handed\"."
},
"Diagnostic": {
"properties": {
"severity": {
"$ref": "#/$defs/Severity"
},
"rule": {
"type": "string",
"title": "Rule"
},
"message": {
"type": "string",
"title": "Message"
},
"line": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Line"
},
"column": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Column"
}
},
"type": "object",
"required": [
"severity",
"rule",
"message"
],
"title": "Diagnostic",
"description": "A correctness problem found in the code."
},
"Meta": {
"properties": {
"service": {
"type": "string",
"title": "Service"
},
"version": {
"type": "string",
"title": "Version"
},
"api": {
"type": "string",
"title": "Api",
"default": "v1"
},
"engine": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "Engine"
},
"ai": {
"anyOf": [
{
"$ref": "#/$defs/AIReport"
},
{
"type": "null"
}
]
},
"mode": {
"$ref": "#/$defs/Mode",
"default": "static"
},
"duration_ms": {
"type": "integer",
"title": "Duration Ms",
"default": 0
},
"request_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Request Id"
}
},
"type": "object",
"required": [
"service",
"version"
],
"title": "Meta",
"description": "Provenance of a response, so results stay reproducible."
},
"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."
},
"RuntimeReport": {
"properties": {
"ran": {
"type": "boolean",
"title": "Ran",
"default": false
},
"returncode": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Returncode"
},
"stdout": {
"type": "string",
"title": "Stdout",
"default": ""
},
"stderr": {
"type": "string",
"title": "Stderr",
"default": ""
},
"duration_ms": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Duration Ms"
},
"timed_out": {
"type": "boolean",
"title": "Timed Out",
"default": false
},
"sandbox": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sandbox"
}
},
"type": "object",
"title": "RuntimeReport",
"description": "Outcome of executing the code in a sandbox."
},
"SecurityFinding": {
"properties": {
"tool": {
"type": "string",
"title": "Tool"
},
"id": {
"type": "string",
"title": "Id"
},
"severity": {
"$ref": "#/$defs/Severity"
},
"confidence": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Confidence"
},
"message": {
"type": "string",
"title": "Message"
},
"line": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Line"
},
"cwe": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cwe"
}
},
"type": "object",
"required": [
"tool",
"id",
"severity",
"message"
],
"title": "SecurityFinding",
"description": "A security problem reported by one of the scanners."
},
"Severity": {
"type": "string",
"enum": [
"error",
"warning",
"info"
],
"title": "Severity",
"description": "Severity of a single finding."
}
}
}
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-response"
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.