projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed8282c
)
OpenAPI: Remove max pagination limit from the spec
author
rinpatch
<rinpatch@sdf.org>
Fri, 1 May 2020 18:33:34 +0000
(21:33 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Fri, 1 May 2020 18:33:34 +0000
(21:33 +0300)
In an ideal world clients wouldn't try to request more than the max
hardcoded limit, but SubwayTooter does.
lib/pleroma/web/api_spec/helpers.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/api_spec/helpers.ex
b/lib/pleroma/web/api_spec/helpers.ex
index df08044864d4490815c4ce4cd83aa86cf1231328..183df43eea9a03819753219ec33b31edac1b3a25 100644
(file)
--- 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