{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/intodns-ai/json-schema/intodns-ai-aifix-response-schema.json",
  "title": "AIFixResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/intodns-ai-openapi.json#/components/schemas/AIFixResponse",
  "type": "object",
  "required": [
    "data",
    "cached",
    "source",
    "timestamp"
  ],
  "properties": {
    "data": {
      "type": "object",
      "required": [
        "explanation",
        "solution",
        "config",
        "instructions",
        "warnings"
      ],
      "properties": {
        "explanation": {
          "type": "string"
        },
        "solution": {
          "type": "string"
        },
        "config": {
          "type": "string"
        },
        "instructions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "cached": {
      "type": "boolean",
      "description": "True for pre-built or fallback helper output. Preserved on API cache hits; this is not an API cache-hit indicator."
    },
    "source": {
      "type": "string",
      "enum": [
        "pre-built",
        "claude-api"
      ]
    },
    "timestamp": {
      "type": "integer",
      "description": "Unix time in milliseconds when the helper response was generated. Preserved when serving a cached response."
    }
  }
}