{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/edgechat-ai/json-schema/edgechat-ai-metadata-response-schema.json",
  "title": "MetadataResponse",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/edgechat-ai-openapi.json#/components/schemas/MetadataResponse",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "version": {
      "type": "string",
      "description": "API version"
    },
    "corpus_version": {
      "type": "string"
    },
    "corpus_updated": {
      "type": "string",
      "format": "date",
      "description": "Published corpus release date"
    },
    "release_notes": {
      "type": "string",
      "format": "uri"
    },
    "reference_cards": {
      "type": "string",
      "format": "uri"
    },
    "id_policy": {
      "$ref": "#/$defs/IdPolicy"
    },
    "docs": {
      "type": "string"
    },
    "openapi": {
      "type": "string"
    },
    "license": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "url",
        "summary"
      ]
    },
    "limits": {
      "type": "object",
      "properties": {
        "per_minute": {
          "type": "integer"
        },
        "per_day": {
          "type": "integer"
        },
        "per": {
          "type": "string"
        }
      },
      "required": [
        "per_minute",
        "per_day",
        "per"
      ]
    },
    "routes": {
      "type": "object",
      "properties": {
        "search": {
          "type": "string"
        },
        "article": {
          "type": "string"
        },
        "article_by_id": {
          "type": "string"
        },
        "leads": {
          "type": "string"
        },
        "random": {
          "type": "string"
        },
        "topics": {
          "type": "string"
        },
        "topic": {
          "type": "string"
        },
        "geo": {
          "type": "string"
        },
        "geo_node": {
          "type": "string"
        },
        "related": {
          "type": "string"
        },
        "translate_ids": {
          "type": "string"
        },
        "articles_after": {
          "type": "string"
        },
        "health": {
          "type": "string"
        },
        "releases": {
          "type": "string"
        },
        "trees": {
          "type": "string"
        },
        "geo_tree": {
          "type": "string"
        }
      },
      "required": [
        "search",
        "article",
        "article_by_id",
        "leads",
        "random",
        "topics",
        "topic",
        "geo",
        "geo_node",
        "related",
        "translate_ids",
        "articles_after",
        "health",
        "releases",
        "trees",
        "geo_tree"
      ]
    }
  },
  "$defs": {
    "IdPolicy": {
      "type": "object",
      "properties": {
        "article_ids": {
          "type": "string"
        },
        "addresses": {
          "type": "string"
        },
        "topic_ids": {
          "type": "string"
        },
        "removed": {
          "type": "string"
        },
        "translate": {
          "type": "string"
        }
      }
    }
  }
}