Skip to content

Commit

Permalink
docs: add warning to maxLength / minLength
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoniangreen committed May 7, 2024
1 parent d9bd01b commit 63e7f22
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 63e7f22

Please sign in to comment.