{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/satohub-ai/json-schema/satohub-ai-interpretation-schema.json",
  "title": "interpretation",
  "description": "How the request was read. Present only on an interpreted answer; the response also carries `X-Sato-Interpreted: <rule>`.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/satohub-ai-openapi.json#/components/schemas/interpretation",
  "type": "object",
  "required": [
    "interpreted_as",
    "requested",
    "rule",
    "note"
  ],
  "properties": {
    "interpreted_as": {
      "type": "string",
      "description": "What was served: a URL, a canonical value, `needs_input`, `supported` or `candidates`."
    },
    "requested": {
      "type": "string",
      "description": "What was sent, decoded and cut to 200 characters."
    },
    "rule": {
      "type": "string",
      "enum": [
        "template-placeholder",
        "near-miss",
        "alias",
        "needs-input",
        "example-goal",
        "param-alias",
        "body-alias",
        "bare-body",
        "chain-spelling",
        "candidates"
      ]
    },
    "note": {
      "type": "string"
    }
  },
  "additionalProperties": true
}