open-api-spex / open_api_spex

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

fix: ensure operation_id is always set on conn.private #606

Closed msutkowski closed 1 month ago

msutkowski commented 1 month ago

There was an issue where you had to pass in the operationId on error cases to assert_operation_response because of the nature of the error handling halting and returning a collection of errors for the given step. Lifting the put_operation_id up gets around all of that as even if things halt, we'll still have a reference to the operationId in conn.private

mbuhot commented 1 month ago

Thanks @msutkowski !