Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Including description and type: 'number' causes invalid input #64

calvinfo opened this Issue · 4 comments

5 participants


Including both a type:'number' and description key seems to break the input.

var fields = {
  price : {
    description : 'Price',
    default : 10,
    type : 'number'

prompt.get({ properties : fields }, function (err, result) { 
  // other stuff...


prompt: Price:  (10) 
error:   Invalid input for Price
prompt: Price:  (10) 1
error:   Invalid input for Price

Using message instead fixes the problem, but doesn't give you a nice name in the input.




+1 ?


#75 Here's the fix pull request.

@jcrugzz jcrugzz closed this in 36a6075
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.