Merge branch 'features/users-raw_bio' into 'develop'
[akkoma] / lib / pleroma / web / api_spec / schemas / chat_message.ex
index 89e062dddd09f480b9a4f0f543b80e551efcac0e..3ee85aa761928c632d774cf88603dfa56ce650b9 100644 (file)
@@ -10,12 +10,13 @@ defmodule Pleroma.Web.ApiSpec.Schemas.ChatMessage do
   OpenApiSpex.schema(%{
     title: "ChatMessage",
     description: "Response schema for a ChatMessage",
+    nullable: true,
     type: :object,
     properties: %{
       id: %Schema{type: :string},
       account_id: %Schema{type: :string, description: "The Mastodon API id of the actor"},
       chat_id: %Schema{type: :string},
-      content: %Schema{type: :string},
+      content: %Schema{type: :string, nullable: true},
       created_at: %Schema{type: :string, format: :"date-time"},
       emojis: %Schema{type: :array},
       attachment: %Schema{type: :object, nullable: true}