Fixed length dataset schema

Hi,

Is that possible to create schema to be able to generate fixed length dataset?

You can use ruby formula

you can curl

curl "https://api.mockaroo.com/api/<schema_id>?count=10&key=<key_id>" | sed 's/`//g' | less

Example of a schema

{
  "num_rows": 10,
  "file_format": "custom",
  "name": "fixed",
  "include_header": true,
  "delimiter": "`",
  "columns": [
    {
      "name": "row_number",
      "null_percentage": 0,
      "type": "Row Number",
      "formula": "this.to_s.rjust(5, '0')"
    },
    {
      "name": "collector_number",
      "null_percentage": 0,
      "type": "Number",
      "min": 11111111111,
      "max": 22222222222,
      "decimals": 0,
      "formula": "this.to_s.rjust(20, ' ')"
    },
    {
      "name": "name",
      "null_percentage": 0,
      "type": "First Name",
      "formula": "this.to_s.ljust(20, '0')"
    }
  ]
}