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

This reverts commit db87be126e.
This commit is contained in:
Mark Felder 2024-01-30 14:14:56 -05:00
commit 589456f0ba
2 changed files with 8 additions and 8 deletions

View file

@ -79,9 +79,9 @@ defmodule Pleroma.Web.ApiSpec.Admin.InviteOperation do
"Parameters",
%Schema{
type: :object,
required: ["token"],
required: [:token],
properties: %{
"token" => %Schema{type: :string}
token: %Schema{type: :string}
}
},
required: true
@ -106,10 +106,10 @@ defmodule Pleroma.Web.ApiSpec.Admin.InviteOperation do
"Parameters",
%Schema{
type: :object,
required: ["email"],
required: [:email],
properties: %{
"email" => %Schema{type: :string, format: :email},
"name" => %Schema{type: :string}
email: %Schema{type: :string, format: :email},
name: %Schema{type: :string}
}
},
required: true