JSON-Schema-Test-Suite icon indicating copy to clipboard operation
JSON-Schema-Test-Suite copied to clipboard

no tests for unicode codepoints vs. utf8-encoded characters

Open karenetheridge opened this issue 3 years ago • 4 comments
trafficstars

no time to create a PR right now, so dropping this here to come back to, and for discussion in case for some reason this is controversial:

schema: { "maxLength": 3 }

passing test: "ಠ_ಠ" failing test: "ಠ__ಠ"

In unicode, is 0x0CA0 (\x{0ca0}), and is utf8-encoded to 3 bytes: 0xE0 0xB2 0xA0 (\x{e0}\x{b2}\x{a0}).

(and also a similar test for minLength)

karenetheridge avatar Aug 28 '22 23:08 karenetheridge