Revert "Fix description of updateAll response"

This reverts commit 1439446
This commit is contained in:
maxim.sharai 2017-12-05 16:39:36 +03:00
parent 1babfcde9f
commit f0b9c184ed
2 changed files with 3 additions and 14 deletions

View File

@ -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'},

View File

@ -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 : '';
} }