{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/edgechat-ai/json-schema/edgechat-ai-random-article-response-schema.json",
  "title": "RandomArticleResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/edgechat-ai-random-api-openapi.yml#/components/schemas/RandomArticleResponse",
  "type": "object",
  "properties": {
    "result": {
      "$ref": "#/$defs/ArticleSummary"
    },
    "license": {
      "$ref": "#/$defs/License"
    }
  },
  "$defs": {
    "ArticleSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "topic": {
          "type": [
            "string",
            "null"
          ],
          "description": "The top-level branch of the topic tree the article is under. Its own topic is the last entry of the article's `topic_path`."
        },
        "excerpt": {
          "type": "string",
          "description": "The corpus snippet when available, otherwise the article opening as plain text. Older listing excerpts may end in an ellipsis (…)."
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "markdown_url": {
          "type": "string",
          "format": "uri"
        },
        "api_url": {
          "type": "string",
          "format": "uri"
        },
        "snippet": {
          "type": "string",
          "description": "Optional corpus-authored summary, separate from the article opening. Present on corpus-v1.5 articles and their preview results."
        },
        "node": {
          "type": "string",
          "description": "Current concept-tree node of the article, when available. May change when the corpus tree is revised."
        }
      },
      "required": [
        "id",
        "slug",
        "title",
        "excerpt",
        "url",
        "markdown_url",
        "api_url"
      ]
    },
    "License": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "summary": {
          "type": "string"
        },
        "spdx": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "url"
      ]
    }
  }
}