Data types are declared with a type
tag in a property definition block. They can specify one of the predefined or user-defined data types:
Data type | Valid Format |
---|---|
email format (foo@bar.com) | |
Url | url format (http:#foo.com) |
IP | IPv4 (129.89.23.1) or IPv6 format |
IPv4 | IPv4 (129.89.23.1) format |
IPv6 | IPv6 format |
String | any string |
Alpha | string composed of letters only |
Alphanumeric | string composed of alphanumeric, but no symbols (so "_abc" will fail) |
Numeric | string composed of numbers only |
Int | a valid integer value |
Float | a valid floating point number value |
Decimal | any valid number |
UUID | universally unique identifier (128-bit number) only |
Date | date string only |
Boolean | boolean value (true/false) |
Integration | a valid integration type (available only to resource model) |
Array
Any of the above data types (other than Integration
) can be declared as an array with the addition of brackets. For example: String[], Int[]