Skip to content

No support for Array type in JSON-Schema implementation #54

Closed
Marak opened this Issue Sep 6, 2012 · 1 comment

2 participants

@Marak
Marak commented Sep 6, 2012

Currently, there is no way enter valid values for arrays.

Example:

var prompt = require('../lib/prompt');

var schema = {
  properties: {
    flavors: {
      type: 'array'
    }
  }
};

prompt.start();
prompt.get(schema, function (err, result) {
  if(err) {
    console.log('cancelled error');
    return;
  }
  console.log(err, result);
});

Instead of not being able to enter any values, the user should be presented with a mini-menu for adding items to an array until they are done adding items.

@Southern Southern was assigned Oct 18, 2012
@Southern
Southern commented Dec 6, 2012

Fixed in master.

@Southern Southern closed this Dec 6, 2012
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.