Add specs for AccountController.mute and AccountController.unmute
[akkoma] / lib / pleroma / web / api_spec / schemas / account_update_credentials_request.ex
index 6ab48193edf577828b81823ef4f9761d4a977882..35220c78a3d7450ab597f6efb30545c81f150139 100644 (file)
@@ -38,7 +38,10 @@ defmodule Pleroma.Web.ApiSpec.Schemas.AccountUpdateCredentialsRequest do
         description: "Whether manual approval of follow requests is required."
       },
       fields_attributes: %Schema{
-        oneOf: [%Schema{type: :array, items: AccountAttributeField}, %Schema{type: :object}]
+        oneOf: [
+          %Schema{type: :array, items: AccountAttributeField},
+          %Schema{type: :object, additionalProperties: %Schema{type: AccountAttributeField}}
+        ]
       },
       # NOTE: `source` field is not supported
       #