Attribute Definition
Manifest path: $.models[*].attributes[*]
You can think of an attribute as a MySQL column, an Elasticsearch Field, etc.
An attribute definition needs to specify details about how Dore should generate values for it and also certain
protocol specific properties
for the attribute.
Example
Attribute Definition example | |
---|---|
Fields
-
value
(object) [required]Manifest path:
$.models[*].attributes[*].value
This config is used to specify how Dore should generate values for the attribute.
There are various attribute value generators that you can use to do things such as generate date between a given range, or select a value at random from a predefined list of values, etc.
Please refer the value generators below for details:
-
properties
(object)Manifest path:
$.models[*].attributes[*].properties
This config is used to specify protocol specific properties for the attribute.
Protocol specific properties of an attribute are required only when there is a need to persist the model associated with it and its records in any datastore. That is, the model is linked to a datastore and
persistence
on the model is set to"FULL"
or is not explicitly mentioned in the manifest (as the Dore assumes the defaultpersistence
as"FULL"
if it is not specified).Since each protocol has different requirements for configuring an attribute, this config varies from one protocol to the other. Please refer the protocol specific sections below for details: