Closed OptimumCode closed 4 months ago
You're correct in that the implementation doesn't appear to be particularly accurate with regards to RFC5893. There are so few test cases in the JSON Schema Test Suite that I'm not sure if any fixes applied would be correct. I think the accurate reference is probably icu4j but it's a 13mb dependency.
I agree, without proper tests it would be hard to make sure nothing was broken. In this case, I think it is better to start from modifying JSON Schema Test suite - if new tests are accepted it should be easier to make changes in the related part of the code here. I will think about tests that can be added to the test suite to add additional coverage for Bidi rule
Closing this issue until the Official Test Suite is upgraded.
Hi,
I am creating my own JSON schema validation library for Kotlin Multiplatform and I tried to use this library as a reference to implement
idn-hostname
format validation.However, I found out that the library does not implement all the points from the specification. I am referring to testLTR, testRTL methods and the switch here.
There are missing points from the specification that I have found:
Bidi rule should be applied only to Bidi domain name. There is a definition of the Bidi domain name from the spec:
This would mean that the first step should be to determine whether the string is a Bidi domain name
Does any of those points make sense? Could you please take a look and let me know if I have missed something or misunderstood.