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

NameTypeDescription
typestringType of data that will be returned. Must be assigned as pattern.
patternstringWrite characters that represent the substitutions that will be made using the define property.
defineobjectUsing 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