From a0b1202f9eebb469de9a7c79cae527a3722a78ae Mon Sep 17 00:00:00 2001 From: Kamal Khatwani Date: Sun, 30 May 2021 12:08:14 +0530 Subject: [PATCH] Write default data type as string to annotations for APIs --- generators/api/templates/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') { _%>