| 253 | // marker; consult it so `(0.0..1.0)` is a number range, not — as its integral bounds alone |
| 254 | // would read — an integer one. A bound with no marker falls back to its value's integralness. |
| 255 | const intBound = (b) => !b.IsFloat && Number.isInteger(b.Value) |
| 256 | const intRange = intBound(e.Value.Min) && intBound(e.Value.Max) // e.g. js-uint (0..MAX) vs latitude (-90.0..90.0) |
| 257 | const node = { primitive: intRange ? 'integer' : 'number', min, max } |
| 258 | // The parser's `Inclusive: false` is the `...` form, which excludes only the upper bound. |