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'},
|
{arg: 'options', type: 'object', http: 'optionsFromRequest'},
|
||||||
],
|
],
|
||||||
returns: {
|
returns: {
|
||||||
arg: 'info',
|
arg: 'count',
|
||||||
description: 'Information related to the outcome of the operation',
|
description: 'The number of instances updated',
|
||||||
type: {
|
type: 'object',
|
||||||
count: {
|
|
||||||
type: 'number',
|
|
||||||
description: 'The number of instances updated',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
root: true,
|
root: true,
|
||||||
},
|
},
|
||||||
http: {verb: 'post', path: '/update'},
|
http: {verb: 'post', path: '/update'},
|
||||||
|
|
|
@ -288,12 +288,6 @@ function formatReturns(m) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
var type = returns[0].type;
|
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 : '';
|
return type ? ':' + type : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue