From 63e7f22ee214ab550a64a9e27b03e1c0bb3a176d Mon Sep 17 00:00:00 2001 From: Jason Green Date: Tue, 7 May 2024 22:16:38 +0100 Subject: [PATCH] docs: add warning to maxLength / minLength --- docs/json-schema.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/json-schema.md b/docs/json-schema.md index ac2d82d84..45ef5ef00 100644 --- a/docs/json-schema.md +++ b/docs/json-schema.md @@ -280,6 +280,10 @@ The value of the keyword should be a number. The data to be valid should be a mu ### `maxLength` / `minLength` +::: warning [Grapheme clusters](https://www.unicode.org/reports/tr29/tr29-17.html#Grapheme_Cluster_Boundaries) will count as multiple characters +Certain charsets have characters that are made up of multiple unicode characters. These "grapheme clusters" are counted as multiple characters. +::: + The value of the keywords should be a number. The data to be valid should have length satisfying this rule. Unicode pairs are counted as a single character. **Examples**