{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sabli-app/json-schema/sabli-app-answer-schema.json",
  "title": "Answer",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sabli-app-openapi.yml#/components/schemas/Answer",
  "type": "object",
  "properties": {
    "answer": {
      "type": "string",
      "description": "Markdown (##, ###, >, -)"
    },
    "run_id": {
      "type": "string"
    },
    "attribution": {
      "$ref": "#/$defs/Attribution"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The mind's page on Sabli"
    }
  },
  "required": [
    "answer",
    "run_id",
    "attribution",
    "url"
  ],
  "$defs": {
    "Attribution": {
      "type": "object",
      "properties": {
        "twin": {
          "type": "string",
          "description": "mind@version"
        },
        "creator": {
          "type": "string"
        },
        "runId": {
          "type": "string"
        },
        "workflow": {
          "type": "string"
        },
        "channel": {
          "type": "string"
        },
        "license": {
          "type": "string"
        },
        "disclosure": {
          "type": "string"
        }
      },
      "required": [
        "twin",
        "creator",
        "runId",
        "license",
        "disclosure"
      ]
    }
  }
}