diff --git a/generators/api/templates/index.js b/generators/api/templates/index.js index f6b6069..ec5a70f 100644 --- a/generators/api/templates/index.js +++ b/generators/api/templates/index.js @@ -68,7 +68,7 @@ const { <%= modelFields.join(', ') %> } = schema.tree <%_ } _%> <%_ if ((method.method === 'POST' || method.method === 'PUT') && modelFields.length) { _%> <%_ modelFields.forEach(function (field) { _%> - * @apiParam <%= field %> <%= start %>'s <%= field %>. + * @apiParam {String} <%= field %> <%= start %>'s <%= field %>. <%_ }) _%> <%_ } _%> <%_ if (method.method === 'GET LIST') { _%>