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); }
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?