Open stefanluptak opened 2 years ago
To clarify, are you hitting an error on this line?: https://github.com/open-api-spex/open_api_spex/blob/master/lib/open_api_spex/plug/cast_and_validate.ex#L111
The short-term fix would be to use a guard in your controller plug pipeline:
plug OpenApiSpex.Plug.CastAndValidate, json_render_error_v2: true when not action in [:dummy2]
When I have something like this:
When I do a request to the
dummy2
action, it's still being casted and validated which results into an error.I believe, that operation with spec
false
should be skipped.