Faker
Manifest path: $.models[*].attributes[*].value
With Dore, you can leverage the capabilities that Python's Faker library provides in order to generate values for attributes.
Example
Faker value config example | |
---|---|
This is identical to invoking the pyint method for generating values for the attribute.
Python's Faker library uses the concept of providers which provide methods to a faker instance. These methods, when invoked, generate a value.
Fields
-
faker
(object) [required]Manifest path:
$.models[*].attributes[*].value.faker
The
faker
object inside value config indicates Dore that it needs to use Faker to generate values for the attribute.In a Dore manifest, Faker based attribute value configs have the following general structure:
General structure of a faker config