Number

Any number, e.g. 900900.09E+2 or 9.0E+2.

Properties

  • REQUIREDtypestring

    Value must be set to number.

Validation

Input

{
  title: 'Current popularity',
  name: 'popularity',
  type: 'number'
}

Output

{
  "_type": "movie",
  "popularity": 12.5,
  ...
}

Gotcha

Never use number for storing a phone-number. Minimize pain down the road and use string instead.