swift-openapi-generator
swift-openapi-generator copied to clipboard
Attach more context information to errors thrown in middlewares
Currently, when errors are thrown in a transport, we attach as much context as we have at that point (the Input value, operationId, etc). But when an error is thrown in a middleware, we don't attach some info that we could, so let's fix that. Will make debugging errors thrown by middlewares quicker, if all the right context is already attached and logged.