schema.number

Randomly generates decimal or integer values.

Attributes

minmumoptional

The minimum value (inclusive) to be generated. Corresponds to the minimum JSON schema keyword. The default value is -1.7976931348623157x10308.

maximumoptional

The maximum value (inclusive) to be generated. Corresponds to the maximum JSON schema keyword. The default value is 1.7976931348623157x10308.

Examples

Unbounded:

{
  "type": "number"
}

Bounded:

{
  "type": "number",
  "minimum": -3.14,
  "maximum": 2.71
}