Skip to content

Commit a4a85fa

Browse files
docs: add warning to maxLength / minLength (#2428)
1 parent d9bd01b commit a4a85fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/json-schema.md

+4
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ The value of the keyword should be a number. The data to be valid should be a mu
280280

281281
### `maxLength` / `minLength`
282282

283+
::: warning [Grapheme clusters](https://www.unicode.org/reports/tr29/tr29-17.html#Grapheme_Cluster_Boundaries) will count as multiple characters
284+
Certain charsets have characters that are made up of multiple unicode characters. These "grapheme clusters" are counted as multiple characters.
285+
:::
286+
283287
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.
284288

285289
**Examples**

0 commit comments

Comments
 (0)