Skip to content

Commit

Permalink
docs: add warning to maxLength / minLength (#2428)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoniangreen authored May 10, 2024
1 parent d9bd01b commit a4a85fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/json-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down

0 comments on commit a4a85fa

Please sign in to comment.