diff options
author | marcin mikołajczak <git@mkljczk.pl> | 2024-04-06 10:54:59 +0200 |
---|---|---|
committer | marcin mikołajczak <git@mkljczk.pl> | 2024-04-06 11:45:19 +0200 |
commit | ccc3ac241f5b7c88b36efe60a4f9e5d791d2d49a (patch) | |
tree | 8f463989ca84ce2d9af9ff1fb385c35a247404d1 /lib/pleroma/web/api_spec/operations/admin | |
parent | 01a5f839c58d89be802e162280bd02c577bdec89 (diff) | |
download | pleroma-ccc3ac241f5b7c88b36efe60a4f9e5d791d2d49a.tar.gz pleroma-ccc3ac241f5b7c88b36efe60a4f9e5d791d2d49a.zip |
Add hint to rules
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'lib/pleroma/web/api_spec/operations/admin')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/admin/report_operation.ex | 3 | ||||
-rw-r--r-- | lib/pleroma/web/api_spec/operations/admin/rule_operation.ex | 9 |
2 files changed, 8 insertions, 4 deletions
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 971231f4d..25a604beb 100644 --- a/lib/pleroma/web/api_spec/operations/admin/report_operation.ex +++ b/lib/pleroma/web/api_spec/operations/admin/report_operation.ex @@ -182,7 +182,8 @@ defmodule Pleroma.Web.ApiSpec.Admin.ReportOperation do type: :object, properties: %{ id: %Schema{type: :string}, - text: %Schema{type: :string} + text: %Schema{type: :string}, + hint: %Schema{type: :string, nullable: true} } } } 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 2360880e4..c3a3ecc7c 100644 --- a/lib/pleroma/web/api_spec/operations/admin/rule_operation.ex +++ b/lib/pleroma/web/api_spec/operations/admin/rule_operation.ex @@ -84,7 +84,8 @@ defmodule Pleroma.Web.ApiSpec.Admin.RuleOperation do required: [:text], properties: %{ priority: %Schema{type: :integer}, - text: %Schema{type: :string} + text: %Schema{type: :string}, + hint: %Schema{type: :string} } } end @@ -94,7 +95,8 @@ defmodule Pleroma.Web.ApiSpec.Admin.RuleOperation do type: :object, properties: %{ priority: %Schema{type: :integer}, - text: %Schema{type: :string} + text: %Schema{type: :string}, + hint: %Schema{type: :string} } } end @@ -105,7 +107,8 @@ defmodule Pleroma.Web.ApiSpec.Admin.RuleOperation do properties: %{ id: %Schema{type: :string}, priority: %Schema{type: :integer}, - text: %Schema{type: :string} + text: %Schema{type: :string}, + hint: %Schema{type: :string, nullable: true} } } end |