Revert "Fix description of updateAll response"
This reverts commit 1439446
This commit is contained in:
parent
1babfcde9f
commit
f0b9c184ed
|
@ -845,14 +845,9 @@ module.exports = function(registry) {
|
|||
{arg: 'options', type: 'object', http: 'optionsFromRequest'},
|
||||
],
|
||||
returns: {
|
||||
arg: 'info',
|
||||
description: 'Information related to the outcome of the operation',
|
||||
type: {
|
||||
count: {
|
||||
type: 'number',
|
||||
description: 'The number of instances updated',
|
||||
},
|
||||
},
|
||||
arg: 'count',
|
||||
description: 'The number of instances updated',
|
||||
type: 'object',
|
||||
root: true,
|
||||
},
|
||||
http: {verb: 'post', path: '/update'},
|
||||
|
|
|
@ -288,12 +288,6 @@ function formatReturns(m) {
|
|||
return '';
|
||||
}
|
||||
var type = returns[0].type;
|
||||
|
||||
// handle anonymous type definitions, e.g
|
||||
// { arg: 'info', type: { count: 'number' } }
|
||||
if (typeof type === 'object' && !Array.isArray(type))
|
||||
type = 'object';
|
||||
|
||||
return type ? ':' + type : '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue