Skip to content

Commit

Permalink
Fix issue krakenjs#76 - parameter minLength is overrided with value 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Meilys committed Feb 6, 2017
1 parent b16aa6e commit ef132a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ef132a1

Please sign in to comment.