{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/edgechat-ai/json-schema/edgechat-ai-cite-articles-response-schema.json",
  "title": "CiteArticlesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/edgechat-ai-cite-api-openapi.yml#/components/schemas/CiteArticlesResponse",
  "type": "object",
  "properties": {
    "format": {
      "type": "string"
    },
    "citations": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/Citation"
      }
    },
    "missing": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "license": {
      "$ref": "#/$defs/License"
    }
  },
  "$defs": {
    "Citation": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "format": {
          "type": "string"
        },
        "citation": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "description": "CSL-JSON"
            }
          ]
        },
        "credit": {
          "type": "string"
        },
        "credit_md": {
          "type": "string"
        },
        "credit_html": {
          "type": "string"
        }
      }
    },
    "License": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "summary": {
          "type": "string"
        },
        "spdx": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "url"
      ]
    }
  }
}