Revert "Pleroma.Web.AdminAPI.ReportController: dialyzer errors"

This reverts commit bfe626d578.
This commit is contained in:
Mark Felder 2024-01-30 14:14:07 -05:00
commit da5e0fca4f
2 changed files with 5 additions and 5 deletions

View file

@ -107,7 +107,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.ReportOperation do
request_body("Parameters", %Schema{
type: :object,
properties: %{
"content" => %Schema{type: :string, description: "The message"}
content: %Schema{type: :string, description: "The message"}
}
}),
security: [%{"oAuth" => ["admin:write:reports"]}],
@ -199,9 +199,9 @@ defmodule Pleroma.Web.ApiSpec.Admin.ReportOperation do
defp update_request do
%Schema{
type: :object,
required: ["reports"],
required: [:reports],
properties: %{
"reports" => %Schema{
reports: %Schema{
type: :array,
items: %Schema{
type: :object,