We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbd0593 commit f62378fCopy full SHA for f62378f
lib/prompt.js
@@ -761,9 +761,14 @@ function convert(schema) {
761
}
762
763
if (!newSchema || schema.validator || schema.warning || typeof schema.empty !== 'undefined') {
764
- schema.description = schema.message;
765
- schema.message = schema.warning;
766
-
+ if(typeof schema.message !== 'undefined'){
+ schema.description = schema.message;
+ }
767
+
768
+ if(typeof schema.warning !== 'undefined'){
769
+ schema.message = schema.warning;
770
771
772
if (typeof schema.validator === 'function') {
773
schema.conform = schema.validator;
774
} else {
0 commit comments