{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "$id": "https://continuwuity.org/schema/announcements.schema.json",
    "type": "object",
    "properties": {
      "announcements": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer"
            },
            "message": {
              "type": "string"
            },
            "date": {
              "type": "string"
            },
            "mention_room": {
              "type": "boolean",
              "description": "Whether to mention the room (@room) when posting this announcement"
            }
          },
          "required": [
            "id",
            "message"
          ]
        }
      }
    },
    "required": [
      "announcements"
    ]
  }
