diff options
author | rinpatch <rinpatch@sdf.org> | 2020-05-01 21:33:34 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-05-01 21:33:34 +0300 |
commit | 85105f7aaeaaa241a9d524ab27e77d6284036051 (patch) | |
tree | b723ccbf1640f37137084ef370aa1bf19604c895 /lib | |
parent | ed8282c0910e5a07b87a6efbf4eb34208a8f39e1 (diff) | |
download | pleroma-85105f7aaeaaa241a9d524ab27e77d6284036051.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/api_spec/helpers.ex | 4 |
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 |