mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-23 06:58:58 +00:00
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.
This commit is contained in:
parent
ed8282c091
commit
85105f7aae
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue