Number schema

Learn how to define numeric values.

Number schemas describe numeric values such as prices, quantities, and percentages.

Number input

The input for a number schema is a text field that only accepts numbers, either integers or decimals, depending on the schema's configuration.

Examples

Below are some examples of number schemas:

123
{
"type": "number"
}

Properties

The following properties are available for number schemas:

type
string

The type of the schema. Always number for number schemas.

integer(optional)
boolean

Whether to allow integral numbers only.

Default:false
minimum(optional)
number

The minimum allowed value (inclusive).

Default:no minimum
maximum(optional)
number

The maximum allowed value (inclusive).

Default:no maximum