Using the following schema:
and a very simple package.json
with the only dependency being json-schema-faker
(0.5.0.rc16), when I run the following code I see the output shown at the bottom (an example run)
jsf = require('json-schema-faker');
var schema = {
"type": "object",
"properties": {
"users": {
"type": "array",
"minItems": 3,
"maxItems": 5,
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"unique": true,
"minimum": 1
},
"firstName": {
"type": "string",
"faker": "name.findName"
},
"lastName": {
"type": "string",
"faker": "name.lastName"
},
"email": {
"type": "string",
"faker": "internet.email"
}
},
"required": ["id", "firstName", "lastName", "email"]
}
}
},
"required": ["users"]
};
var mylist = jsf.generate(schema);
console.log("mylist: ", mylist);
OUTPUT
mylist: { users:
[ { id: 46919647,
firstName: 'commodo ut deserunt',
lastName: 'magna',
email: 'ex minim irure' },
{ id: 36864773,
firstName: 'aliquip elit laborum',
lastName: 'co',
email: 'nisi Ut laboris dolore' },
{ id: 62231151,
firstName: 'adipisicing id reprehenderit exercitation',
lastName: 'tempor culpa deserunt Excepteur nisi',
email: 'est enim' },
{ id: 57427341,
firstName: 'eu ullamco reprehenderit mollit',
lastName: 'cupidatat ut non',
email: 'id dolore sed et' } ] }
Why is everything in Latin? What am I doing wrong here.