schema.integer

Randomly generates integer values.

Attributes

minmumoptional

The minimum value (inclusive) to be generated. Corresponds to the minimum JSON schema keyword. The default value is -9,223,372,036,854,775,808.

maximumoptional

The maximum value (inclusive) to be generated. Corresponds to the maximum JSON schema keyword. The default value is 9,223,372,036,854,775,807.

Examples

Unbounded:

{
  "type": "integer"
}

Bounded:

{
  "type": "integer",
  "minimum": 0,
  "maximum": 100
}