summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-05-01 21:33:34 +0300
committerrinpatch <rinpatch@sdf.org>2020-05-01 21:33:34 +0300
commit85105f7aaeaaa241a9d524ab27e77d6284036051 (patch)
treeb723ccbf1640f37137084ef370aa1bf19604c895
parented8282c0910e5a07b87a6efbf4eb34208a8f39e1 (diff)
OpenAPI: Remove max pagination limit from the spec
In an ideal world clients wouldn't try to request more than the max hardcoded limit, but SubwayTooter does.
-rw-r--r--lib/pleroma/web/api_spec/helpers.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/api_spec/helpers.ex b/lib/pleroma/web/api_spec/helpers.ex
index df0804486..183df43ee 100644
--- a/lib/pleroma/web/api_spec/helpers.ex
+++ b/lib/pleroma/web/api_spec/helpers.ex
@@ -41,8 +41,8 @@ defmodule Pleroma.Web.ApiSpec.Helpers do
Operation.parameter(
:limit,
:query,
- %Schema{type: :integer, default: 20, maximum: 40},
- "Limit"
+ %Schema{type: :integer, default: 20},
+ "Maximum number of items to return. Will be ignored if it's more than 40"
)
]
end