From fd62eaa814609835c87df5f24633760552ce64ea Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 9 Sep 2025 11:42:42 -0400 Subject: Add interpretation tests for (u)int, disallow -2^63 as an int --- site/spec.html | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'site') diff --git a/site/spec.html b/site/spec.html index 7dcc957..f3178fd 100644 --- a/site/spec.html +++ b/site/spec.html @@ -471,18 +471,26 @@ and for my.nephews.car.id is String (no schema key matches, so the default of St
  • None — accepts an unset value (special—see below)
  • Empty — accepts an empty value
  • Bool — accepts true, on, yes, - false, off, no (case-sensitive).
  • -
  • UInt — accepts any unsigned integer that fits in 63 [sic] bits, - written in decimal or 0x or 0X-prefixed hexadecimal. + false, off, no (case- and white space- sensitive).
  • +
  • UInt — accepts any unsigned integer strictly less than 263, + written in decimal or 0x or 0X-prefixed hexadecimal. A leading + is permitted, but -0 is not. + Leading zeroes are not permitted for decimal integers. + White space around the integer is not permitted. Only 63 bits are allowed to support languages (Java) with no 64-bit unsigned integers.
  • -
  • Int — accepts any (two’s complement) signed integer that fits in 64 bits, +
  • Int — accepts any (two’s complement) signed integer whose absolute value + is strictly less than 263 + (NB: INT64_MIN/−263 is not allowed), written in decimal or 0x or 0X-prefixed hexadecimal. + Leading zeroes are not permitted for decimal integers. + White space around the integer is not permitted. A leading + (or, of course, -) is permitted.
  • Float — A floating-point number, written in ordinary decimal (e.g. -1.234, 7., 265) or in scientific notation (e.g. 3e5, 3.E-5, -3.7e+5). + Excessive leading zeroes are not permitted (0.0 is allowed, but not 00.0). + White space around the number is not permitted. A leading + (or, of course, -) is permitted.
  • 'value' — -- cgit v1.2.3