You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems that response validation is triggered even though it shouldn't: _swagger_validate: name: swagger_validator validateResponse: false
Maybe it is important to mention that I set up a responseValidationError handler: swaggerExpress.runner.on('responseValidationError', function(validationResponse, request, response) { config.logger.error('swagger validation error', validationResponse.errors); });
I noticed this bit of code in the connect_middleware.js as possible culprit: var listenerCount = (runner.listenerCount) ? runner.listenerCount('responseValidationError') : // Node >= 4.0 EventEmitter.listenerCount(runner, 'responseValidationError'); // Node < 4.0 if (listenerCount) { hookResponseForValidation(context, runner); }
Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
Hi there.
Seems that response validation is triggered even though it shouldn't:
_swagger_validate: name: swagger_validator validateResponse: false
Maybe it is important to mention that I set up a responseValidationError handler:
swaggerExpress.runner.on('responseValidationError', function(validationResponse, request, response) { config.logger.error('swagger validation error', validationResponse.errors); });
I noticed this bit of code in the connect_middleware.js as possible culprit:
var listenerCount = (runner.listenerCount) ? runner.listenerCount('responseValidationError') : // Node >= 4.0 EventEmitter.listenerCount(runner, 'responseValidationError'); // Node < 4.0 if (listenerCount) { hookResponseForValidation(context, runner); }
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: