From ef132a1dbb728a8be55a4c11d35ba7034b815b31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Catherine=20Arriv=C3=A9?= Date: Mon, 6 Feb 2017 11:46:29 +0100 Subject: [PATCH] Fix issue #76 - parameter minLength is overrided with value 0 --- lib/validator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/validator.js b/lib/validator.js index 68b2cd0..be0ddea 100644 --- a/lib/validator.js +++ b/lib/validator.js @@ -79,7 +79,8 @@ module.exports = function validator(options) { schema: parameter.schema, items: parameter.items, properties: parameter.properties, - pattern: parameter.pattern + pattern: parameter.pattern, + minLength: parameter.minLength }; if ((parameter.in === 'body' || parameter.in === 'formData') && template.schema) {