Fields

Fields is a list of Field object.

A field is an object consisting of at least two required parameters:

  • name: name of the field
  • type: Type of the field

Then, multiple optional parameters depending on the type of the field:

  • min
  • max
  • length
  • possible_values
  • possible_values_weighted
  • filters
  • conditionals

Note: All field Types and how to use them is described in next section

Examples

Few basic examples of field definitions:

{
    "name": "size",
    "type": "INTEGER"
}
{
    "name": "bool",
    "type": "BOOLEAN"
}
{
    "name": "startDate",
    "type": "TIMESTAMP"
}