Corrected accidental duplication of responseMessages from merge
This commit is contained in:
parent
1294b53f5c
commit
ef7e5d403c
|
@ -173,7 +173,7 @@ var routeHelper = module.exports = {
|
|||
var returns = routeHelper.convertReturnsToSwagger(route, classDef);
|
||||
var responseMessages = [
|
||||
{
|
||||
code: 200,
|
||||
code: route.returns && route.returns.length ? 200 : 204,
|
||||
message: 'Request was successful',
|
||||
responseModel: returns.model || prepareDataType(returns.type) || 'void'
|
||||
}
|
||||
|
@ -186,15 +186,6 @@ var routeHelper = module.exports = {
|
|||
|
||||
var responseDoc = modelHelper.LDLPropToSwaggerDataType(returns);
|
||||
|
||||
var responseMessages = [{
|
||||
code: route.returns && route.returns.length ? 200 : 204,
|
||||
message: 'Request was successful'
|
||||
}];
|
||||
|
||||
if (route.errors) {
|
||||
responseMessages.push.apply(responseMessages, route.errors);
|
||||
}
|
||||
|
||||
var apiDoc = {
|
||||
path: routeHelper.convertPathFragments(route.path),
|
||||
// Create the operation doc.
|
||||
|
|
Loading…
Reference in New Issue