Currency/Currency Code Mapping
Yes adding country did the trick, the currency name and the currency code were in sync. On their own you just get a random list of mismatched currency codes and names. I needed a unique list of...
View Article401 Unauthorized from PATCH endpoint
my PATCH /todos/:id.json fails with 401 Unauthorized Angular service methods: update(id: string, body: Partial<ITodoBase>) { console.log('Service updates id', id, 'with', body); const url =...
View ArticleRandomly responding with an error
Hi, How do I randomly generate error? Something like this below doesn't work (getting always 401) if random(0, 2) > 1 then status 500 { message: 'I was told to error' } else schema "Todos" generate...
View ArticleGenerate Random Whole Number
Hi again How do I generate a random whole number between, say, 8 and 20? I've played with regular expressions, json and formulas but can't figure it out. Any ideas? RegardsMartin
View ArticleHow to dynamically set min and max values for date according to id?
You've probably figured this out but, just in case you haven't... Set the date format to yyyy-mm-dd and add the code 'if id <= 20 then "2017-01-01" else "2018-01-01" end' with the 'fx' button. Hope...
View ArticleConditionally hide a field based on a condition
Not sure if you've figured this but just in case. May I suggest you use lowercase first letters in your fields as it makes life easier when using Mockaroo. Make sure your 'careOf' field comes before...
View ArticleGenerate Random Whole Number
Hi @themartincotterill - it's much simpler than that. Select the Number data type, set your minimum, maximum and leave decimals at 0.
View ArticleRandom Price Walk
Has anyone instituted a random walk pricing model? I'd be interesting in seeing how you did that. https://en.wikipedia.org/wiki/Random_walk_hypothesis
View ArticleRandom Price Walk
@thomas.zdon - I don't believe this would be possible as you cannot write a formula that accesses previous row values. This post confirms this:...
View ArticleCurrency/Currency Code Mapping
@adrian_hill - please consider marking my response as solution if it has answered your query
View ArticleJson format with a [?
I am using mockaroo since yesterday trying to model some data. I'm getting very close - but not entirely there. My model generates:{ "records": { "summaid_": 0, "priceSourceid_": 0, "date_":...
View ArticleIncredibly long duration modeler - taking 9 hours
I had originally formatted this is for each date, 1 price per security. My dev's asked me to change it to for each date, all securities one price. The difference in the first you get 500 dates with a...
View ArticleGenerate Random Whole Number
Ye Gods! The words "stupid" and "idiot" spring to mind! Trust me to overcomplicate things! Many thanks for the help.
View ArticleIf boolean set nested field
Hi all sorry this is probably a simple answer but nothing stood out or I have my syntax wrong.I want to set additional nested JSON if a JSON boolean is true.Ex: Car.own is trueThen setCar.State to a...
View ArticleIf boolean set nested field
Hi @hellojuan I would pull the state field into a hidden field first within the array, then use this formula:if field("own") then field("__state") else '' end If you are referring to a field within...
View ArticleGenerate JSON data for one time
I use a JSON API in my React app but each time I refresh or each time I click on read more button that I use for show all data, my API data changes and I can't find out my app works fine or notnow, my...
View ArticleReference another schema when generating data
Hello,First, thank you for your work on making this tool. This is the best data generator (free or paid) that I have used. I know that this feature does not exist at the moment, but I'd like to put in...
View ArticleCreating Mock data for Firebase Auth
Anybody had any luck creating a mock user set for firebase auth? I'm trying to create a csv file to import via firebase cli, but it is failing to decode the base64 for Password Hash and Password Salt....
View Article