"type": "integer" when decimal values are not valid.
Common constraints
integer supports the same numeric bound keywords as number (minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf).
When to use
- Use
integerfor counters, indexes, and IDs. - Use
numberwhen decimals are allowed.