codefmt · Schema

FormatResponse

CompanyCode FormattingLintingHubLHubSpotZapiern8nAutomationDeveloper ToolsMCP

Properties

Name Type Description
code string Formatted source.
diagnostics array
diagnosticsFrame string Which text diagnostic positions refer to: the code you sent (HubL) or the formatted output (JavaScript, Python). Absent when diagnostics is empty by construction.
error string Present only on partial failure; omitted entirely on success.
warnings array Present only when the request carried a top-level language that was not applied (unrecognised, conflicting with platformVariants, or python on hubl), saying what happened.
duration integer Server processing time in milliseconds.
View JSON Schema on GitHub

JSON Schema

codefmt-dev-format-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codefmt-dev/json-schema/codefmt-dev-format-response-schema.json",
  "title": "FormatResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codefmt-dev-openapi.yml#/components/schemas/FormatResponse",
  "type": "object",
  "required": [
    "code",
    "diagnostics",
    "duration"
  ],
  "properties": {
    "code": {
      "type": "string",
      "description": "Formatted source."
    },
    "diagnostics": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Diagnostic"
      }
    },
    "diagnosticsFrame": {
      "type": "string",
      "enum": [
        "input",
        "output"
      ],
      "description": "Which text diagnostic positions refer to: the code you sent (HubL) or the formatted output (JavaScript, Python). Absent when diagnostics is empty by construction."
    },
    "error": {
      "type": "string",
      "description": "Present only on partial failure; omitted entirely on success."
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Present only when the request carried a top-level language that was not applied (unrecognised, conflicting with platformVariants, or python on hubl), saying what happened."
    },
    "duration": {
      "type": "integer",
      "description": "Server processing time in milliseconds."
    }
  },
  "$defs": {
    "Diagnostic": {
      "type": "object",
      "required": [
        "line",
        "column",
        "message",
        "severity",
        "rule"
      ],
      "properties": {
        "line": {
          "type": "integer",
          "description": "1-based."
        },
        "column": {
          "type": "integer",
          "description": "1-based."
        },
        "endLine": {
          "type": "integer"
        },
        "endColumn": {
          "type": "integer"
        },
        "severity": {
          "type": "string",
          "enum": [
            "error",
            "warning",
            "info"
          ],
          "description": "info comes from the HubL unknown filter/global/function checks."
        },
        "message": {
          "type": "string"
        },
        "rule": {
          "type": "string"
        },
        "fix": {
          "$ref": "#/$defs/Fix"
        }
      }
    },
    "Edit": {
      "type": "object",
      "required": [
        "start",
        "end",
        "replacement"
      ],
      "properties": {
        "start": {
          "$ref": "#/$defs/Position"
        },
        "end": {
          "$ref": "#/$defs/Position"
        },
        "replacement": {
          "type": "string"
        }
      }
    },
    "Fix": {
      "type": "object",
      "required": [
        "description",
        "safety",
        "edits"
      ],
      "properties": {
        "description": {
          "type": "string"
        },
        "safety": {
          "type": "string",
          "enum": [
            "safe",
            "unsafe"
          ]
        },
        "edits": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Edit"
          }
        }
      }
    },
    "Position": {
      "type": "object",
      "required": [
        "line",
        "column"
      ],
      "properties": {
        "line": {
          "type": "integer"
        },
        "column": {
          "type": "integer"
        }
      }
    }
  }
}

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/codefmt-dev-format-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.