Return array response in JSON(without Header)
Hi here is the dataset link: Products I want to have an array in response (without header attribute). Expected: ["Product Attributes1", "Product Attributes2", "Product Attributes3"] Actual: {...
View ArticleReturn array response in JSON(without Header)
You can do this by creating a Mock API. Use this code: schema "Products" data = generate(1) data['attributes']
View ArticleFeature request: Custom functions
When custom functions are used in schemas that are shared with other people via projects, do you recommend manually sharing those custom functions with the other people so that the schemas work for...
View ArticleFeature request: Custom functions
Mockaroo will load the functions from the user who created the schema, not the user generating the data. So if you’re generating data from a schema that’s been shared with you, the functions should...
View ArticleQuotes for Strings only, not for number
Hi, I am experiencing a issue while generating dataset. When I try to generate date in CSV format, it doesn’t support for quotes features. For this, I try to use custom format, where I enable force...
View ArticleQuotes for Strings only, not for number
Can you explain what you mean by this? it doesn’t support for quotes features In CSV, there is no difference between a string that contains only numbers (e.g “1”) and a number (e.g. 1). In other...
View ArticleQuotes for Strings only, not for number
Here is example dataset. https://www.mockaroo.com/40faa3f0 I wants to display id and salary without double quotes. And rest other within double quotes. Can you please suggest me solution for it? Thank...
View ArticleQuotes for Strings only, not for number
There is no way to do this in Mockaroo. It does not allow you to control the quoting of individual fields. You can only force quotes for all fields or use the default behavior, to only wrap fields in...
View ArticleUnable to save my schema "Columns data type can't be blank"
I have got the same issue here. When I want to make schema for my results website, there is an error saying that column type cannot be blank.
View ArticleIs there a way to create a JSON array of different types of objects?
I am trying to find a way to make a schema that has a JSON array in it, but the elements of the array have different fields. In the example bellow I have a field called definitions which will be the...
View ArticleGenerate REST API erroring/File in progress indefinitely
I have a direct REST integration for the generate endpoint using the background parameter. The API request goes through (I can even see that a generated dataset is queued in the UI) but my application...
View ArticleMock API Granular Functionaility - Add Latency or a delay to Mock API repsonse
I am attempting to mimic an API my service is talking to and to do somewhat confident testing, I need my Mockaroo Mock API endpoint to delay the response for a certain period of time. There seems to...
View ArticleIterating through arrays (for loop?)
This would also be something I would like to know how to do, but haven’t been able to figure it out. Every time I try to set up a loop I get syntax errors from the formula “field”: “error: no implicit...
View ArticleShould blanks all be in same row?
Thanks for resurfacing this issue. It seems like your status inquiry got the attention of someone who could fix the bug.
View ArticleShould blanks all be in same row?
Thanks for fixing. Following is a confirmation screenshot showing expected results in case that’s helpful for anyone encountering this thread to reference. This went unaddressed for a year after I...
View ArticleHow can we ensure that Mockaroo generate real US addresses (Door No Street,...
We have a requirements where we would like to display the location of the address on a google map. Hence we need real US addresses that can be located on a Map
View ArticleCreating multiple rows of data for the same fields
I am in need of data for a financial application. I need multiple rows of data for HistoricalBalance for 1 Account_Id over different times, we would like to generate a HistoricalBalance for every 15...
View ArticleJSON Parent to have total amount of child field
How do we modify the formula if we have to sum up the values at 3 levels. Tried something like serviceline.productgroup.map {|l| l[‘amount’]}.sum and serviceline.productgroup.map {|l||l|...
View Article