-
Notifications
You must be signed in to change notification settings - Fork 0
Column Configuration Options
K J D S SRINIVASA RAO edited this page Mar 11, 2020
·
24 revisions
A typical column format will contain the below options
- Name : Column name
- Type : Column type. This is a mandatory option.
- Config : Column configuration
- string
- int
- date
- bool
- default
- decimal
- list
- guid
- length - Length of the random string to be generated, this is excluding the prefix and suffix. If not specified default value of 5 will be taken. We can generate multiple words seperated by one space by including "|" symbol and entering the word length. For example, if we want to generate two word string where first word is for four character length and the second word is of five character length then the length config is specified as below
{ "length " : "4|5" }- prefix - Prefix to be added to the generated string. This is optional.
- suffix - Suffix to be added to the generated string. This is optional.
- lowerCase - Should the generated string be in lower case. This is optional and default value will be true.
- min - Minimum value from which the random integer must be generated. By default this is set to 1
- max - Maximum value below which the random integer must be generated. By default this is set to 1000
- format - Format of the date to be formed. By default this is set to
yyyyMMddHHmmssffff
- No configuration is required. Randomly a true or false value is generated.
- defaultValue - Default value to be populated for all the rows. This is a mandatory field.
- No configuration required. By default an email of the format
{5}@{5}.{3}is generated where the number in{}represents the length of the string generated
- min - Minimum value from which the random integer must be generated. By default this is set to 1.
- max - Maximum value below which the random integer must be generated. By default this is set to 1000.
- decimalPart - Number of digits to be shown after the decimal. By default this is set to 2.
- items : An array of objects from which a item has to be picked randomly. This is a mandatory field.
Sample list type column config
{
"name": "CustomValues",
"type": "list",
"config": {
"items": [
"kjds",
1,
"bool",
"any"
]
}
}
- Generated a guid string