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:
Lain Soykaf 2026-10-31 13:12:15 +04:00
commit 163c49c649
No known key found for this signature in database
3 changed files with 6 additions and 3 deletions

View file

@ -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}