From e245c2c6e8109b0d2ca6e6c93d3e4c9f3dd3a2f0 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 9 Sep 2025 14:51:56 -0400 Subject: Clarify some schema keys Require maxlength to be positive since maxlength = 0 can be achieved with type = '' anyways --- site/spec.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 type explicitly allows numeric values (i.e. it contains a type Int/UInt/Float). + The value must be a valid Float (may contain a decimal even if the type is just Int).

maxlength rule

- This schema key’s value must be a non-negative integer no greater than 231−1, + This schema key’s value must be a positive integer no greater than 231−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.

-- cgit v1.2.3