Open yamazed opened 4 years ago
Thanks for your observation! Feel free to open a PR if you have a chance!
I believe I have a patch for this layered on top of #42. However, my tests always repeatedly populates a repeated, fixed value, 1. @ryanmcdermott is there an annotation or switch to randomize the value? Is this likely a bug in my implementation?
Has this been resolved? I am finding that enums work, but with string enums
interface Phone {
type: PhoneType;
number: number;
}
enum PhoneType {
WORK = "WORK",
PERSONAL = "PERSONAL",
}
I'm getting a double quoted string:
phone: { type: '"PERSONAL"', number: 33488 }
Also getting double quoted strings here 👍
I have:
output becomes:
{ "Admin": { "firstName": "Libbie", "lastName": "Kuhic", "username": "Forest_Block", "emailAddress": "Richie.OHara@hotmail.com", "studentTypes": [ {}, {}, {} ], "adminRecord": { "studentsPassedEachYear": [ 64163 ] } }, }
expected:
{ "Admin": { "firstName": "Libbie", "lastName": "Kuhic", "username": "Forest_Block", "emailAddress": "Richie.OHara@hotmail.com", "studentTypes": [ 0,1,2 ], "adminRecord": { "studentsPassedEachYear": [ 64163 ] } }, }