Quantcast
Channel: Mockaroo Community Forum - Latest posts
Browsing all 2666 articles
Browse latest View live
↧

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 Article


401 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 Article


Randomly 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 Article

Generate 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 Article

How 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 Article


Conditionally 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 Article

Generate 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 Article

Random 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 Article


Random 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 Article


Currency/Currency Code Mapping

@adrian_hill - please consider marking my response as solution if it has answered your query

View Article

Random Price Walk

Perfect solution. Thanks - sometimes simple is best.

View Article

Json 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 Article

Json format with a [?

forget it - aren't youtube videos great. Found it.

View Article


Incredibly 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 Article

Generate Random Whole Number

Ye Gods! The words "stupid" and "idiot" spring to mind! Trust me to overcomplicate things! Many thanks for the help.

View Article


If 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 Article

If 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 Article


Generate 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 Article

Reference 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 Article

Creating 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
Browsing all 2666 articles
Browse latest View live