Definition
The full name transformer generates a valid full name from a list of predefined full name values. The generated full name is made from a combination of the first and last names transformers.
By default, the full name transformer generates a full name of random length. To preserve the length of the input full name, you can set the preserveLength
config.
Configurations
Depending on your validations, you may want to configure the output full name. The full name transformer has the following configurations:
Name | Description | Default | Example Input | Example Output |
---|---|---|---|---|
PreserveLength | Preserve Length will ensure that the output full name is the same length as the input full name by preserving the length of the first and last names. The preserveLength config only preserves first and/or last names up to 12 characters long. So the max full name length is 25 characters. | false | John | Bill |
Examples
There are several ways you can mix-and-match configurations to get different full name formats. Here are some possible combinations:
PreserveLength | Example Input | Example Output |
---|---|---|
false | Joe Smith | Edward Marshall |
true | Frank Jones | Dante Mayer |
false | Aidan Bell | Gregory Johnson |