Skip to content

Commit

Permalink
Add notice that body params are not merged into Conn.params whne usin…
Browse files Browse the repository at this point in the history
…g cast and validate plug (#589)
  • Loading branch information
hamir-suspect authored May 12, 2024
1 parent fd0d842 commit 699f876
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/open_api_spex/plug/cast_and_validate.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
defmodule OpenApiSpex.Plug.CastAndValidate do
@moduledoc """
Module plug that will cast and validate the `Conn.params` and `Conn.body_params` according to the schemas defined for the operation.
Note that when using this plug, the body params are no longer merged into `Conn.params` and must be read from `Conn.body_params`
separately.
The operation_id can be given at compile time as an argument to `init`:
Expand Down

0 comments on commit 699f876

Please sign in to comment.