operation use helper function for empty object

This commit is contained in:
Alexander Strizhakov 2020-05-19 09:36:49 +03:00
parent d4f50f2ba9
commit c95bbeadc3
No known key found for this signature in database
GPG key ID: 022896A53AEF1381

View file

@ -56,9 +56,7 @@ defmodule Pleroma.Web.ApiSpec.DomainMuteOperation do
operationId: "DomainMuteController.delete",
requestBody: domain_mute_request(),
security: [%{"oAuth" => ["follow", "write:mutes"]}],
responses: %{
200 => Operation.response("Empty object", "application/json", %Schema{type: :object})
}
responses: %{200 => empty_object_response()}
}
end