diff options
author | feld <feld@feld.me> | 2024-01-28 23:20:25 +0000 |
---|---|---|
committer | feld <feld@feld.me> | 2024-01-28 23:20:25 +0000 |
commit | c9dc881747ee04498ae19311b5525b4bfc660eee (patch) | |
tree | a59030d29f4f370900256ff52645d2217f112afa /lib/pleroma/web/api_spec/operations/admin | |
parent | b1659b77554000b582041ab053708c8c52720f35 (diff) | |
parent | 6a22a80f9f86dade9976e0f3363b4415edd933d0 (diff) | |
download | pleroma-c9dc881747ee04498ae19311b5525b4bfc660eee.tar.gz pleroma-c9dc881747ee04498ae19311b5525b4bfc660eee.zip |
Merge branch 'dialyzer-fixes' into 'develop'
More dialyzer fixes
See merge request pleroma/pleroma!4048
Diffstat (limited to 'lib/pleroma/web/api_spec/operations/admin')
7 files changed, 31 insertions, 31 deletions
diff --git a/lib/pleroma/web/api_spec/operations/admin/config_operation.ex b/lib/pleroma/web/api_spec/operations/admin/config_operation.ex index 487dd5cda..c528cacf2 100644 --- a/lib/pleroma/web/api_spec/operations/admin/config_operation.ex +++ b/lib/pleroma/web/api_spec/operations/admin/config_operation.ex @@ -47,7 +47,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.ConfigOperation do request_body("Parameters", %Schema{ type: :object, properties: %{ - configs: %Schema{ + "configs" => %Schema{ type: :array, items: %Schema{ type: :object, diff --git a/lib/pleroma/web/api_spec/operations/admin/instance_document_operation.ex b/lib/pleroma/web/api_spec/operations/admin/instance_document_operation.ex index fc0de499b..b2a1ba8ad 100644 --- a/lib/pleroma/web/api_spec/operations/admin/instance_document_operation.ex +++ b/lib/pleroma/web/api_spec/operations/admin/instance_document_operation.ex @@ -61,9 +61,9 @@ defmodule Pleroma.Web.ApiSpec.Admin.InstanceDocumentOperation do title: "UpdateRequest", description: "POST body for uploading the file", type: :object, - required: [:file], + required: ["file"], properties: %{ - file: %Schema{ + "file" => %Schema{ type: :string, format: :binary, description: "The file to be uploaded, using multipart form data." diff --git a/lib/pleroma/web/api_spec/operations/admin/invite_operation.ex b/lib/pleroma/web/api_spec/operations/admin/invite_operation.ex index e4a9ffaeb..3b084f3b8 100644 --- a/lib/pleroma/web/api_spec/operations/admin/invite_operation.ex +++ b/lib/pleroma/web/api_spec/operations/admin/invite_operation.ex @@ -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 diff --git a/lib/pleroma/web/api_spec/operations/admin/media_proxy_cache_operation.ex b/lib/pleroma/web/api_spec/operations/admin/media_proxy_cache_operation.ex index 0b1eb3946..79363d4cd 100644 --- a/lib/pleroma/web/api_spec/operations/admin/media_proxy_cache_operation.ex +++ b/lib/pleroma/web/api_spec/operations/admin/media_proxy_cache_operation.ex @@ -78,9 +78,9 @@ defmodule Pleroma.Web.ApiSpec.Admin.MediaProxyCacheOperation do "Parameters", %Schema{ type: :object, - required: [:urls], + required: ["urls"], properties: %{ - urls: %Schema{type: :array, items: %Schema{type: :string, format: :uri}} + "urls" => %Schema{type: :array, items: %Schema{type: :string, format: :uri}} } }, required: true @@ -104,10 +104,10 @@ defmodule Pleroma.Web.ApiSpec.Admin.MediaProxyCacheOperation do "Parameters", %Schema{ type: :object, - required: [:urls], + required: ["urls"], properties: %{ - urls: %Schema{type: :array, items: %Schema{type: :string, format: :uri}}, - ban: %Schema{type: :boolean, default: true} + "urls" => %Schema{type: :array, items: %Schema{type: :string, format: :uri}}, + "ban" => %Schema{type: :boolean, default: true} } }, required: true diff --git a/lib/pleroma/web/api_spec/operations/admin/relay_operation.ex b/lib/pleroma/web/api_spec/operations/admin/relay_operation.ex index 8b241bd49..ca9080fb3 100644 --- a/lib/pleroma/web/api_spec/operations/admin/relay_operation.ex +++ b/lib/pleroma/web/api_spec/operations/admin/relay_operation.ex @@ -87,7 +87,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.RelayOperation do %Schema{ type: :object, properties: %{ - relay_url: %Schema{type: :string, format: :uri} + "relay_url" => %Schema{type: :string, format: :uri} } } end @@ -96,8 +96,8 @@ defmodule Pleroma.Web.ApiSpec.Admin.RelayOperation do %Schema{ type: :object, properties: %{ - relay_url: %Schema{type: :string, format: :uri}, - force: %Schema{type: :boolean, default: false} + "relay_url" => %Schema{type: :string, format: :uri}, + "force" => %Schema{type: :boolean, default: false} } } end diff --git a/lib/pleroma/web/api_spec/operations/admin/report_operation.ex b/lib/pleroma/web/api_spec/operations/admin/report_operation.ex index d7a74f665..3902f12f1 100644 --- a/lib/pleroma/web/api_spec/operations/admin/report_operation.ex +++ b/lib/pleroma/web/api_spec/operations/admin/report_operation.ex @@ -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, diff --git a/lib/pleroma/web/api_spec/operations/admin/user_operation.ex b/lib/pleroma/web/api_spec/operations/admin/user_operation.ex index a5179ac39..49f5a4786 100644 --- a/lib/pleroma/web/api_spec/operations/admin/user_operation.ex +++ b/lib/pleroma/web/api_spec/operations/admin/user_operation.ex @@ -50,7 +50,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.UserOperation do %Schema{ type: :object, properties: %{ - users: %Schema{type: :array, items: user()}, + "users" => %Schema{type: :array, items: user()}, count: %Schema{type: :integer}, page_size: %Schema{type: :integer} } @@ -75,7 +75,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.UserOperation do description: "POST body for creating users", type: :object, properties: %{ - users: %Schema{ + "users" => %Schema{ type: :array, items: %Schema{ type: :object, @@ -168,8 +168,8 @@ defmodule Pleroma.Web.ApiSpec.Admin.UserOperation do %Schema{ type: :object, properties: %{ - follower: %Schema{type: :string, description: "Follower nickname"}, - followed: %Schema{type: :string, description: "Followed nickname"} + "follower" => %Schema{type: :string, description: "Follower nickname"}, + "followed" => %Schema{type: :string, description: "Followed nickname"} } } ), @@ -193,8 +193,8 @@ defmodule Pleroma.Web.ApiSpec.Admin.UserOperation do %Schema{ type: :object, properties: %{ - follower: %Schema{type: :string, description: "Follower nickname"}, - followed: %Schema{type: :string, description: "Followed nickname"} + "follower" => %Schema{type: :string, description: "Follower nickname"}, + "followed" => %Schema{type: :string, description: "Followed nickname"} } } ), @@ -219,7 +219,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.UserOperation do description: "POST body for approving multiple users", type: :object, properties: %{ - nicknames: %Schema{ + "nicknames" => %Schema{ type: :array, items: %Schema{type: :string} } @@ -251,7 +251,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.UserOperation do description: "POST body for adding multiple suggested users", type: :object, properties: %{ - nicknames: %Schema{ + "nicknames" => %Schema{ type: :array, items: %Schema{type: :string} } @@ -283,7 +283,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.UserOperation do description: "POST body for removing multiple suggested users", type: :object, properties: %{ - nicknames: %Schema{ + "nicknames" => %Schema{ type: :array, items: %Schema{type: :string} } @@ -332,7 +332,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.UserOperation do description: "POST body for deleting multiple users", type: :object, properties: %{ - nicknames: %Schema{ + "nicknames" => %Schema{ type: :array, items: %Schema{type: :string} } @@ -364,7 +364,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.UserOperation do description: "POST body for deleting multiple users", type: :object, properties: %{ - nicknames: %Schema{ + "nicknames" => %Schema{ type: :array, items: %Schema{type: :string} } @@ -404,7 +404,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.UserOperation do description: "POST body for deleting multiple users", type: :object, properties: %{ - nicknames: %Schema{ + "nicknames" => %Schema{ type: :array, items: %Schema{type: :string} } |