From 74b384968f2071361a7a600145fb0e1c1079f53f Mon Sep 17 00:00:00 2001 From: mkljczk Date: Fri, 6 Dec 2024 20:30:07 +0100 Subject: [PATCH] fix typos Signed-off-by: mkljczk --- lib/pleroma/web/api_spec.ex | 6 +++--- .../web/api_spec/operations/admin/domain_operation.ex | 8 ++++---- .../web/api_spec/operations/admin/rule_operation.ex | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/pleroma/web/api_spec.ex b/lib/pleroma/web/api_spec.ex index d62ea585e..3bdc4deae 100644 --- a/lib/pleroma/web/api_spec.ex +++ b/lib/pleroma/web/api_spec.ex @@ -97,7 +97,7 @@ defmodule Pleroma.Web.ApiSpec do "Frontend management", "Instance configuration", "Instance documents", - "Instance rule managment", + "Instance rule management", "Invites", "MediaProxy cache", "OAuth application management", @@ -106,9 +106,9 @@ defmodule Pleroma.Web.ApiSpec do "Status administration", "User administration", "Announcement management", - "Instance rule managment", + "Instance rule management", "Webhooks", - "Domain managment" + "Domain management" ] }, %{ diff --git a/lib/pleroma/web/api_spec/operations/admin/domain_operation.ex b/lib/pleroma/web/api_spec/operations/admin/domain_operation.ex index 20f790074..54553a6de 100644 --- a/lib/pleroma/web/api_spec/operations/admin/domain_operation.ex +++ b/lib/pleroma/web/api_spec/operations/admin/domain_operation.ex @@ -16,7 +16,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.DomainOperation do def index_operation do %Operation{ - tags: ["Domain managment"], + tags: ["Domain management"], summary: "Retrieve list of domains", operationId: "AdminAPI.DomainController.index", security: [%{"oAuth" => ["admin:read"]}], @@ -33,7 +33,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.DomainOperation do def create_operation do %Operation{ - tags: ["Domain managment"], + tags: ["Domain management"], summary: "Create new domain", operationId: "AdminAPI.DomainController.create", security: [%{"oAuth" => ["admin:write"]}], @@ -49,7 +49,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.DomainOperation do def update_operation do %Operation{ - tags: ["Domain managment"], + tags: ["Domain management"], summary: "Modify existing domain", operationId: "AdminAPI.DomainController.update", security: [%{"oAuth" => ["admin:write"]}], @@ -65,7 +65,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.DomainOperation do def delete_operation do %Operation{ - tags: ["Domain managment"], + tags: ["Domain management"], summary: "Delete domain", operationId: "AdminAPI.DomainController.delete", parameters: [Operation.parameter(:id, :path, :string, "Domain ID")], diff --git a/lib/pleroma/web/api_spec/operations/admin/rule_operation.ex b/lib/pleroma/web/api_spec/operations/admin/rule_operation.ex index c3a3ecc7c..6d06728f4 100644 --- a/lib/pleroma/web/api_spec/operations/admin/rule_operation.ex +++ b/lib/pleroma/web/api_spec/operations/admin/rule_operation.ex @@ -16,7 +16,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.RuleOperation do def index_operation do %Operation{ - tags: ["Instance rule managment"], + tags: ["Instance rule management"], summary: "Retrieve list of instance rules", operationId: "AdminAPI.RuleController.index", security: [%{"oAuth" => ["admin:read"]}], @@ -33,7 +33,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.RuleOperation do def create_operation do %Operation{ - tags: ["Instance rule managment"], + tags: ["Instance rule management"], summary: "Create new rule", operationId: "AdminAPI.RuleController.create", security: [%{"oAuth" => ["admin:write"]}], @@ -49,7 +49,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.RuleOperation do def update_operation do %Operation{ - tags: ["Instance rule managment"], + tags: ["Instance rule management"], summary: "Modify existing rule", operationId: "AdminAPI.RuleController.update", security: [%{"oAuth" => ["admin:write"]}], @@ -65,7 +65,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.RuleOperation do def delete_operation do %Operation{ - tags: ["Instance rule managment"], + tags: ["Instance rule management"], summary: "Delete rule", operationId: "AdminAPI.RuleController.delete", parameters: [Operation.parameter(:id, :path, :string, "Rule ID")],