//int

The //int type is exactly like //num, but the value must have a zero fractional part. That is: when the value is divided by one, there must no remainder. Being an integer does not mean that a number may not be represented as a rational or other implementation-specific datatype that allows for fractional parts. It means only that the fractional part must be equal to zero.

The optional value parameter may provide an exact value to be compared against. If this parameter is given, the schema will only accept values that are numerically equal to the parameter's value.

The optional range parameter may provide a range of values to accept. Providing both range and value is not an error, but the Rx implementation may choose to return a //fail schema if no value could possibly satisfy the combination of the given range and value.

/.meta/int, the schema for //int definitions:

{
  "type": "//rec",
  "required": {
    "type": { "type": "//str", "value": "//int" }
  },
  "optional": {
    "value": { "type": "//int" },
    "range": { "type": "/.meta/range" }
  }
}