{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/glyphapi-dev/json-schema/glyphapi-dev-answer-out-schema.json",
  "title": "AnswerOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/glyphapi-dev-openapi.json#/components/schemas/AnswerOut",
  "properties": {
    "cutoff": {
      "type": "string",
      "title": "Cutoff"
    },
    "query": {
      "type": "string",
      "title": "Query"
    },
    "gap_days": {
      "type": "number",
      "title": "Gap Days"
    },
    "answer": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Answer"
    },
    "citations": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Citations"
    },
    "corpus_match": {
      "type": "string",
      "title": "Corpus Match"
    },
    "top_score": {
      "type": "number",
      "title": "Top Score"
    },
    "model": {
      "type": "string",
      "title": "Model"
    },
    "reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reason"
    },
    "results": {
      "items": {
        "$ref": "#/$defs/Hit"
      },
      "type": "array",
      "title": "Results"
    },
    "model_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Id"
    },
    "cutoff_source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cutoff Source"
    },
    "model_cutoff": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Cutoff"
    }
  },
  "type": "object",
  "required": [
    "cutoff",
    "query",
    "gap_days",
    "answer",
    "citations",
    "corpus_match",
    "top_score",
    "model",
    "results"
  ],
  "$defs": {
    "Hit": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "source": {
          "type": "string",
          "title": "Source"
        },
        "url": {
          "type": "string",
          "title": "Url"
        },
        "published_at": {
          "type": "string",
          "title": "Published At"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "text": {
          "type": "string",
          "title": "Text"
        },
        "score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Score"
        },
        "severity_score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Severity Score"
        },
        "affected": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "title": "Affected"
        }
      },
      "type": "object",
      "required": [
        "id",
        "source",
        "url",
        "published_at",
        "title",
        "text"
      ],
      "title": "Hit"
    }
  }
}