{
  "x-mizan-channels": [
    {
      "name": "chat",
      "pascalName": "Chat",
      "hasParams": true,
      "hasReactMessage": true,
      "hasDjangoMessage": true,
      "paramsType": "ChatChannelParams",
      "reactMessageType": "ChatReactMessage",
      "djangoMessageType": "ChatDjangoMessage"
    },
    {
      "name": "notifications",
      "pascalName": "Notifications",
      "hasParams": false,
      "hasReactMessage": false,
      "hasDjangoMessage": true,
      "djangoMessageType": "NotificationsDjangoMessage"
    }
  ],
  "components": {
    "schemas": {
      "ChatChannelParams": {
        "type": "object",
        "properties": {
          "room_id": { "type": "string" }
        },
        "required": ["room_id"]
      },
      "ChatReactMessage": {
        "type": "object",
        "properties": {
          "text": { "type": "string" }
        },
        "required": ["text"]
      },
      "ChatDjangoMessage": {
        "type": "object",
        "properties": {
          "text": { "type": "string" },
          "from_user": { "type": "string" }
        },
        "required": ["text", "from_user"]
      },
      "NotificationsDjangoMessage": {
        "type": "object",
        "properties": {
          "body": { "type": "string" }
        },
        "required": ["body"]
      }
    }
  }
}
