fix(api_spec): pass cast options on the first permissive cast
Without them replace_params: false was ignored when strict is off, so conn.params got atom keys and RateLimiter params: ["id"] buckets collapsed to one per user.
This commit is contained in:
parent
3e9dc477c9
commit
163c49c649
3 changed files with 6 additions and 3 deletions
|
|
@ -114,7 +114,7 @@ defmodule Pleroma.Web.ApiSpec.CastAndValidate do
|
|||
false = _strict,
|
||||
cast_opts
|
||||
) do
|
||||
case OpenApiSpex.cast_and_validate(spec, operation, conn, content_type) do
|
||||
case OpenApiSpex.cast_and_validate(spec, operation, conn, content_type, cast_opts) do
|
||||
{:ok, conn} ->
|
||||
{:ok, conn}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue