{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api.nthusa.tw/schemas/dining-restaurant.json",
  "title": "DiningRestaurant",
  "description": "A campus dining restaurant (餐廳資訊).",
  "type": "object",
  "required": [
    "area",
    "name",
    "note",
    "phone",
    "schedule"
  ],
  "properties": {
    "area": {
      "type": "string",
      "description": "餐廳所在建築"
    },
    "image": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "餐廳圖片"
    },
    "name": {
      "type": "string",
      "description": "餐廳名稱"
    },
    "note": {
      "type": "string",
      "description": "餐廳備註"
    },
    "phone": {
      "type": "string",
      "description": "餐廳電話"
    },
    "schedule": {
      "type": "object",
      "description": "餐廳營業時間",
      "additionalProperties": true
    }
  },
  "x-method": "derived",
  "x-source-url": "openapi/_original/nthu-data-api.yaml",
  "x-operator": "tenant",
  "x-note": "Derived from the NTHU Student Association contract at api.nthusa.tw, not published by National Tsing Hua University."
}
