open-api-spex / open_api_spex

Open API Specifications for Elixir Plug applications
Mozilla Public License 2.0
681 stars 177 forks source link

Set read_write_scope in CastAndValidate plug #612

Closed kaharlichenko closed 1 month ago

kaharlichenko commented 1 month ago

This is the last missing piece to make readOnly and writeOnly work with the plug.

With this PR merged read_write_scope is set either based on the HTTP method or manual configuration set in the routes.

Fixes #499.