{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/nthu/main/json-schema/nthu-library-rss-item-schema.json",
  "title": "LibraryRssItem",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/nthu-data-api.yaml#/components/schemas/LibraryRssItem",
  "properties": {
    "guid": {
      "type": "string",
      "title": "Guid",
      "description": "文章 id"
    },
    "category": {
      "type": "string",
      "title": "Category",
      "description": "文章分類"
    },
    "title": {
      "type": "string",
      "title": "Title",
      "description": "文章標題"
    },
    "link": {
      "title": "Link",
      "description": "文章連結",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 2083,
      "minLength": 1,
      "format": "uri"
    },
    "pubDate": {
      "type": "string",
      "title": "Pubdate",
      "description": "文章發布日期"
    },
    "description": {
      "type": "string",
      "title": "Description",
      "description": "文章內容"
    },
    "author": {
      "type": "string",
      "title": "Author",
      "description": "文章作者"
    },
    "image": {
      "$ref": "#/$defs/LibraryRssImage",
      "description": "文章圖片"
    }
  },
  "type": "object",
  "required": [
    "guid",
    "category",
    "title",
    "link",
    "pubDate",
    "description",
    "author",
    "image"
  ],
  "$defs": {
    "LibraryRssImage": {
      "properties": {
        "url": {
          "type": "string",
          "maxLength": 2083,
          "minLength": 1,
          "format": "uri",
          "title": "Url",
          "description": "圖片網址"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "description": "圖片標題"
        },
        "link": {
          "title": "Link",
          "description": "連結",
          "type": [
            "string",
            "null"
          ],
          "maxLength": 2083,
          "minLength": 1,
          "format": "uri"
        }
      },
      "type": "object",
      "required": [
        "url",
        "title",
        "link"
      ],
      "title": "LibraryRssImage"
    }
  }
}