{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/edgechat-ai/json-schema/edgechat-ai-cite-article-response-schema.json",
  "title": "CiteArticleResponse",
  "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/CiteArticleResponse",
  "allOf": [
    {
      "$ref": "#/$defs/Citation"
    },
    {
      "type": "object",
      "properties": {
        "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"
      ]
    }
  }
}