{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Message",
  "title": "Message",
  "type": "object",
  "description": "A message in a conversation.",
  "properties": {
    "id": {
      "type": "string",
      "description": "Message ID.",
      "example": "mid.1234567890"
    },
    "message": {
      "type": "string",
      "description": "Message text.",
      "example": "Hello!"
    },
    "created_time": {
      "type": "string",
      "format": "date-time",
      "description": "Message creation time."
    },
    "from": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}