bentonam / fakeit

Generates JSON documents based on models defined in YAML and adds them to a Couchbase Bucket
MIT License
86 stars 21 forks source link

Arrays are generating the same number of items for multiple documents #109

Closed tjbenton closed 7 years ago

tjbenton commented 7 years ago

If an array is defined in a document it will generate the same number of items no matter how many documents are generated. This logic needs to move from models to documents so that it can be random correctly. It will also allow us to use the faker/chance seed versions so that the data is consistent.

[
  {
    "tags": [
      "benchmark",
      "microchip"
    ]
  },
  {
    "tags": [
      "Product",
      "reboot"
    ]
  },
  {
    "tags": [
      "Computer",
      "withdrawal"
    ]
  }
]