Pattern type
Pattern type structure
Overview
The pattern type is designed to create data that matches a specific user-defined pattern.
{
"key": {
"type": "pattern",
"pattern": "AAABBBC-DD",
"define": {
"A": "numeric",
"B": "alphabetic",
"C": "alphanumeric",
"D": "numeric"
}
}
}
Parameters
| Name | Type | Description |
|---|---|---|
type | string | Type of data that will be returned. Must be assigned as pattern. |
pattern | string | Write characters that represent the substitutions that will be made using the define property. |
define | object | Using key-value to define the key as the character to be replaced and value the type of data to be replaced. The value can be numeric, alphabetic, alphanumeric and symbol |