diff --git a/content/2020-12/validation/maxLength.markdown b/content/2020-12/validation/maxLength.markdown index 565758df..c3644a56 100644 --- a/content/2020-12/validation/maxLength.markdown +++ b/content/2020-12/validation/maxLength.markdown @@ -61,4 +61,20 @@ The `maxLength` keyword is used to specify the maximum length of a string instan {{}} 55 -{{}} \ No newline at end of file +{{}} + +{{}} +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "string", + "maxLength": 3 +} +{{}} + +{{}} +"\u0066\u006F\u006F" // --> "foo" +{{}} + +{{}} +"\u0048\u0065\u006C\u006C\u006F" // --> "Hello" +{{}}