summaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-09 14:51:56 -0400
committerpommicket <pommicket@gmail.com>2025-09-09 14:51:56 -0400
commite245c2c6e8109b0d2ca6e6c93d3e4c9f3dd3a2f0 (patch)
treef573a6abc6c5dabeacf09a4702ab2f454a61a6a0 /site
parente33f6053d72711cf75c3b30c811fd2a99d6ca7d8 (diff)
Clarify some schema keys
Require maxlength to be positive since maxlength = 0 can be achieved with type = '' anyways
Diffstat (limited to 'site')
-rw-r--r--site/spec.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/site/spec.html b/site/spec.html
index e0d8871..b456e97 100644
--- a/site/spec.html
+++ b/site/spec.html
@@ -545,10 +545,11 @@ and for my.nephews.car.id is String (no schema key matches, so the default of St
This schema key’s value sets the minimum/maximum value for the key’s value.
This may only be set if <code>type</code> explicitly allows numeric values
(i.e. it contains a type <code>Int</code>/<code>UInt</code>/<code>Float</code>).
+ The value must be a valid <code>Float</code> (may contain a decimal even if the type is just <code>Int</code>).
</p>
<h3><code>maxlength</code> rule</h3>
<p>
- This schema key’s value must be a non-negative integer no greater than 2<sup>31</sup>−1,
+ This schema key’s value must be a positive integer no greater than 2<sup>31</sup>−1,
written in decimal with no leading sign.
It specifies that the value of a key can be no longer than that number of UTF-8 bytes.
</p>