Skip to content

Commit 699f876

Browse files
Add notice that body params are not merged into Conn.params whne using cast and validate plug (#589)
1 parent fd0d842 commit 699f876

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/open_api_spex/plug/cast_and_validate.ex

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
defmodule OpenApiSpex.Plug.CastAndValidate do
22
@moduledoc """
33
Module plug that will cast and validate the `Conn.params` and `Conn.body_params` according to the schemas defined for the operation.
4+
Note that when using this plug, the body params are no longer merged into `Conn.params` and must be read from `Conn.body_params`
5+
separately.
46
57
The operation_id can be given at compile time as an argument to `init`:
68

0 commit comments

Comments
 (0)