{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-citation-pack-schema.json",
  "title": "CitationPack",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-catalog-api-openapi.yml#/components/schemas/CitationPack",
  "type": "object",
  "required": [
    "schemaVersion",
    "generatedAt",
    "query",
    "selectedAnswerPack",
    "answer",
    "citeFirst",
    "rows",
    "extractionWorkflow",
    "assistantFit",
    "links"
  ],
  "properties": {
    "schemaVersion": {
      "const": "hugging-bay.citation-pack.v1"
    },
    "generatedAt": {
      "type": "string"
    },
    "query": {
      "type": "string"
    },
    "selectedAnswerPack": {
      "type": "object",
      "additionalProperties": true
    },
    "answer": {
      "type": "object",
      "properties": {
        "short": {
          "type": "string"
        },
        "safeOneLine": {
          "type": "string"
        },
        "supportedClaims": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "avoidClaims": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": true
    },
    "proof": {
      "type": "object",
      "additionalProperties": true
    },
    "citeFirst": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "extractionWorkflow": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "assistantFit": {
      "type": "object",
      "additionalProperties": true
    },
    "links": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}