When moved from 1.1 swagger spec to 1.2 the errorResponses in operation metadata were renamed to responseMessages. This change is supported for backward compatibility here.
But also 'reason' was 'renamed' to 'message'. But this is not supported. Fix is pretty trivial:
if (o.errorResponses) {
responseMessages = o.errorResponses;
var _ri, _rlen, _r;
for (_ri = 0, _rlen = responseMessages.length; _ri < _rlen; _ri++) {
_r = responseMessages[_ri];
if (_r.reason) {
_r.message = _r.reason;
delete _r.reason;
}
}
}