Na tabela abaixo ilustramos os tipos pré-definidos, seus formatos e exemplos.
Tipo Dado | Encoding | Example (JSON) |
string | UTF-8 | “My Beautiful Text” |
boolean | – | true or false |
integer | – | 100, 200, 10, -5 |
double | – | 4.3, -2.1 |
date | ISO_LOCAL_DATE | “2016-03-29” |
dateTime | ISO_DATE_TIME | “2016-03-29T12:56:57.155Z” |
time | ISO_LOCAL_TIME | “09:56:57.158” |
money | – | 10.220. -10.220 |
binary | Base64 | “AAECAWQF” |
enum | UTF-8 | “A”, “E”, “I”, “O”, “U” |
uuid | UTF-8 | “ef7e45b1-0652-4546-ab99-2069915c21fe” |