Hi everyone! First of all, Mockaroo is AMAZING. Absolutely amazing. The one issue I'm running into is the fact that I can add my colleagues to my project (their email is saved in the "Share with" block), and they can see the project and the schema's on their account, but they cannot see the api's. Am I missing something? Any guidance would be greatly appreciated. Thanks in advance!
Added colleague to project. He can see schemas but can't see api's
How do I set a sequence field at a specific number using url param
My schema has a field named "id" that is a sequence and I want to set the start number with a url param.
Route:
GET /Users.json/:start=100&step=1
Handler Script:
schema "Users"
set "id", start: params['start at'], step: params['step']
generate 10
Error : {"error":"undefined method `start=' for #\u003cColumn:0x007fd23baa0388\u003e"}
Any idea on what I'm doing wrong?
Cannot upload a CSV to create a Schema
How does one upload a .csv file to create a schema automatically
Cannot upload a CSV to create a Schema
Hi. A schema created from upload has to be in JSON format. You can upload a CSV as a dataset and use those fields, but it won't generate a schema.
I imagine if you have a very clear definition and you understand the options available for different data types you could programmatically build one, or manually type out a a JSON schema and import it, though you might as well use the interface for that. Depending on your need, one approach might be to start the schema in the interface, export it, and then use code to modify the bit that you want custom, then update the schema from the JSON.
Value Range / Foreign key constraint
Hi
I am trying to put together a test data suite using your wonderful tool. Therein, i have created a customer master table, and have defined customer IDs.
Now, in the transaction dataset, my customer id can only come from whats available in the Customer data set (customer id column).
How can i achieve this within your tool's framework ? Suggestions ?
thanks
How to date entry with additional condition
Hi,
I need to create custom code for Date entry
e.g
Status = GG,YY,ZZ,XW,HB,TB
entry DATE= (Generate entry dates if status = ZZ, HB)
Expiration DATE= (expiration date if status =ZZ, HB status)
Conditions->
Generate entry date (random) if status = ZZ, HB
Generate expiration date random if status =ZZ, HB status
Value Range / Foreign key constraint
Have you selected Dataset Column as the field type? Once you do this you can select for the values to come from a field in that dataset. You can select the distribution - I normally use random, but others may suit you better.
Value Range / Foreign key constraint
thanks a ton. Didnt realize it was implemented and in such a simple way.
works fine for me.
Value Range / Foreign key constraint
You're welcome
Need help with below query
Hi,
I need help with below query-
if field('Status') == "T-3" then date("09/01/2014") end
Trying to add Status condition like A-3, B-2 etc..
when tried && or || is not working... Any help appreciated...
Can I import fields from an JSON schema?
Having trouble importing fields from a JSON schema, is this a known issue?
{
"title": "Person",
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"age": {
"description": "Age in years",
"type": "integer",
"minimum": 0
}
},
"required": ["firstName", "lastName"]
}
How to replicate data from one field to other?
I have this schema: https://mockaroo.com/9d32c920
And I want to replicate the data in some of the fields in few other fields of a different table. Screenshot below:
Is there a way to achieve it for XML outputs? My current formula throws an error - 'Field not found'.
Thanks
How to extract just the date part after adding some days to now()
I have this to generate an end date now() + days(random(10,20))
its returning dates as expected 2018-04-18 06:52:10 but including the time
I only want the date portion, how do i exclude the time
Supported SQL dialects?
Which variations of the SQL dialect are supported when using the option under More in Create Schema ?
I've copied + pasted a simple CREATE TABLE statement from SQL Server (T-SQL) and get an error message. Unfortunately the message isn't descriptive enough to tell me which column it doesn't like :-/
Which versions of SQL could I try using?
It's possible to add multiline content to json value?
Hi guys, I need to create a json with this content:
{ "Multiline field": "LOREM IPSUM\r\nDOLOR SIT AMET"}
But the document generated escapes backslash with a double backslash, is there a way to avoid this?
Thanks!
Datasets upload via REST API
Is there a solution for this? I feel like this would be a really popular use case.
Data not generated with double quotes when format is custom and delimiter is |
I tried to set
output format to custom
delimiter to |
quote to "
however I got the output as below
1|Eustacia|Grabert|egrabert0@wikimedia.org|Female|112.175.143.209
what I am expecting is
"1"|"Eustacia"|"Grabert"|"egrabert0@wikimedia.org"|"Female"|"112.175.143.209"
double quotes are missing for each data cell
This happens in download, preview, Generate APIs
Data not generated with double quotes when format is custom and delimiter is |
Use the template field. I just did a quick test:
"{first_name}"|"{last_name}"|
returned:
"Leta"|"Flawith"|
You can use any static values in template if you want certain parts hard-coded.
Swagger document
I'll put this in as a feature request.
Thanks - awesome product!
Nesting with a random value as parent node?
how do I format a Firebase looking scheme to look like this with the second element as a "generate" firebase uid?
{
"counselors" : {
"-KuUv2rUWFHoizHWx2Gn" : {
"bio" : "Lorem ipsum ",
"city" : "Atlanta",
"firstname" : "Diane",
"lastname" : "Miller",
"state" : "Georgia",
"status" : "A"
}
},