Allow users to remove their emails if instance does not need email to register
[akkoma] / lib / pleroma / web / api_spec / operations / twitter_util_operation.ex
index 879b2227ebd6401deac6cecec48742a40fd13599..ebcfd3be231e661871a1409147331bf8fd228875 100644 (file)
@@ -121,7 +121,10 @@ defmodule Pleroma.Web.ApiSpec.TwitterUtilOperation do
       type: :object,
       required: [:email, :password],
       properties: %{
-        email: %Schema{type: :string, description: "New email"},
+        email: %Schema{
+          type: :string,
+          description: "New email. Set to blank to remove the user's email."
+        },
         password: %Schema{type: :string, description: "Current password"}
       }
     }