Definition
The UUID transformer generates a new UUID v4.
For example:
6d871028b072442c9ad9e6e4e223adfa
Configurations
Depending on your validations, you may want to configure the output uuid. The uuid transformer has the following configurations:
Name | Description | Default | Example Input | Example Output |
---|---|---|---|---|
Include hyphens | Includes hyphens in the output UUID. Note: For some databases, such as Postgres, it will automatically convert any UUID without hyphens to having hyphens. | false | N/A | 6817d39c-ea4f-45ec-a81c-bc0801355576 |
Examples
Here are some example UUID values that the uuid transformer can generate:
Include Hyphens | Example Input | Example Output |
---|---|---|
false | 98085b5a-f7d8-4349-8f18-8bc7febe6fd2 | 53ef1f16cd0d455cb45c4cb6434ae807 |
true | N/A | ab6b676b-0d0e-4e38-b98a-3935a832da7d |