{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rayana-ai/json-schema/rayana-ai-analyst-ask-response-schema.json",
  "title": "AnalystAskResponse",
  "description": "One typed question about a read (PHASE_1_10 §9). `action` says what the\nreader gets: `answer` (with `answer` and the neutral `question` that was\nanswered), `open_read` (`open_ticker`), `compare` (`compare_with`),\n`market_context` or `refuse`, each with a short `message`. `notice` is\n`personal` when the reader's own situation was left out.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rayana-ai-openapi.json#/components/schemas/AnalystAskResponse",
  "properties": {
    "ticker": {
      "type": "string",
      "title": "Ticker"
    },
    "analysis_date": {
      "type": "string",
      "title": "Analysis Date"
    },
    "action": {
      "type": "string",
      "title": "Action"
    },
    "question": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Question"
    },
    "answer": {
      "anyOf": [
        {
          "$ref": "#/$defs/AnalystAskAnswer"
        },
        {
          "type": "null"
        }
      ]
    },
    "notice": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notice"
    },
    "notice_text": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notice Text"
    },
    "message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Message"
    },
    "open_ticker": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Open Ticker"
    },
    "compare_with": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Compare With"
    }
  },
  "type": "object",
  "required": [
    "ticker",
    "analysis_date",
    "action"
  ],
  "$defs": {
    "AnalystAskAnswer": {
      "properties": {
        "answer": {
          "type": "string",
          "title": "Answer"
        },
        "basis": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Basis",
          "default": []
        },
        "covered": {
          "type": "boolean",
          "title": "Covered",
          "default": true
        },
        "cached": {
          "type": "boolean",
          "title": "Cached",
          "default": true
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "answer"
      ],
      "title": "AnalystAskAnswer"
    }
  }
}