AWS Step Functions · Schema

ValidateStateMachineDefinitionOutput

Amazon Web ServicesiPaaSOrchestrationServerlessWorkflowsState Machines

Properties

Name Type Description
result string The result value will be OK when no syntax errors are found, or FAIL if the workflow definition does not pass verification.
diagnostics array An array of diagnostic errors and warnings found during validation of the state machine definition. Since warnings do not prevent deploying your workflow definition, the result value could be OK even
truncated boolean The result value will be true if the number of diagnostics found in the workflow definition exceeds maxResults. When all diagnostics results are returned, the value will be false.
View JSON Schema on GitHub

JSON Schema

aws-step-functions-validate-state-machine-definition-output-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-step-functions/json-schema/aws-step-functions-validate-state-machine-definition-output-schema.json",
  "title": "ValidateStateMachineDefinitionOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-step-functions-operations-api-openapi.yml#/components/schemas/ValidateStateMachineDefinitionOutput",
  "type": "object",
  "properties": {
    "result": {
      "type": "string",
      "enum": [
        "OK",
        "FAIL"
      ],
      "description": "The result value will be OK when no syntax errors are found, or FAIL if the workflow definition does not pass verification."
    },
    "diagnostics": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ValidateStateMachineDefinitionDiagnostic"
      },
      "description": "An array of diagnostic errors and warnings found during validation of the state machine definition. Since warnings do not prevent deploying your workflow definition, the result value could be OK even when warning diagnostics are present in the response."
    },
    "truncated": {
      "type": "boolean",
      "description": "The result value will be true if the number of diagnostics found in the workflow definition exceeds maxResults. When all diagnostics results are returned, the value will be false."
    }
  },
  "required": [
    "result",
    "diagnostics"
  ],
  "$defs": {
    "ValidateStateMachineDefinitionDiagnostic": {
      "type": "object",
      "properties": {
        "severity": {
          "type": "string",
          "enum": [
            "ERROR",
            "WARNING"
          ],
          "description": "A value of ERROR means that you cannot create or update a state machine with this definition. WARNING level diagnostics alert you to potential issues, but they will not prevent you from creating or updating your state machine."
        },
        "code": {
          "type": "string",
          "description": "Identifying code for the diagnostic."
        },
        "message": {
          "type": "string",
          "description": "Message describing the diagnostic condition."
        },
        "location": {
          "type": "string",
          "description": "Location of the issue in the state machine, if available. For errors specific to a field, the location could be in the format: /States//, for example: /States/FailState/ErrorPath."
        }
      },
      "required": [
        "severity",
        "code",
        "message"
      ]
    }
  }
}

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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/aws-step-functions-validate-state-machine-definition-output"
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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.