danibram / mocker-data-generator

A simplified way to generate masive mock data based on a schema, you can use the awesome fake/random data generators like (FakerJs, ChanceJs, CasualJs and RandExpJs)
https://danibram.github.io/mocker-data-generator/
MIT License
426 stars 45 forks source link

Bug here! #61

Closed danibram closed 6 years ago

danibram commented 6 years ago

With your help I detected an issue with this configuration:

var cat = {
    id: {
        incrementalId: 0,
    },
};
var room = {
    cats: {
        chance: "pickone(db.cats)", // right now there is a bug here!
        eval: true
    }
}

mocker()
    .schema('cats', cat, 9)
    .schema('rooms', room,1)

I will provide ASAP a fix! Thank you

danibram commented 6 years ago

This should fixed in v2.6.4