From 91fe902788e080684b22736661f5fc4c8799d6c4 Mon Sep 17 00:00:00 2001 From: Agnivesh Chaubey Date: Tue, 13 Feb 2024 17:54:40 +0530 Subject: [PATCH] `maxLength` Unicode example (#112) --- content/2020-12/validation/maxLength.markdown | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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" +{{}}