Skip to content

Commit

Permalink
Merge pull request #156 from littleguga/master
Browse files Browse the repository at this point in the history
fix #69
  • Loading branch information
gangstead committed Aug 5, 2016
2 parents bbd0593 + f62378f commit 3046431
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/prompt.js
Expand Up @@ -761,9 +761,14 @@ function convert(schema) {
}

if (!newSchema || schema.validator || schema.warning || typeof schema.empty !== 'undefined') {
schema.description = schema.message;
schema.message = schema.warning;

if(typeof schema.message !== 'undefined'){
schema.description = schema.message;
}

if(typeof schema.warning !== 'undefined'){
schema.message = schema.warning;
}

if (typeof schema.validator === 'function') {
schema.conform = schema.validator;
} else {
Expand Down

0 comments on commit 3046431

Please sign in to comment.