You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there are some cases where we want to - and can - generate more realistic fake data for a schema. JSONSchemaFaker provides a way of doing this by updating the relevant JSONSchema object property definition to specify a faker property, where the associated value is either a valid Faker module or some custom definition that we can implement.
This is a rather tedious task and we will most likely not be able to cover everything, but we should do our best to cover some of the low-hanging fruit to make consumption feel more realistic.
TODO: update this description with a checklist of fields to update
The text was updated successfully, but these errors were encountered:
there are some cases where we want to - and can - generate more realistic fake data for a schema. JSONSchemaFaker provides a way of doing this by updating the relevant JSONSchema object property definition to specify a
faker
property, where the associated value is either a valid Faker module or some custom definition that we can implement.All of the logic for this lives in https://github.com/digidem/mapeo-mock-data/blob/main/lib/faker.js. An example of defining custom generators can be found here:
mapeo-mock-data/lib/faker.js
Line 7 in 2daf8d2
This is a rather tedious task and we will most likely not be able to cover everything, but we should do our best to cover some of the low-hanging fruit to make consumption feel more realistic.
TODO: update this description with a checklist of fields to update
The text was updated successfully, but these errors were encountered: