jsoncons icon indicating copy to clipboard operation
jsoncons copied to clipboard

Support JSON Schema Draft 2020-12

Open oiwg opened this issue 3 years ago • 1 comments

The current version of JSON Schema is Draft 2020-12, whereas jsoncons currently supports Draft 7, which is two versions behind.

It would be great if jsoncons supported Draft 2020-12!

It would of course be useful also to retain the Draft 7 support, to allow validation against schemas written to conform to either draft.

I haven't looked to see how great the changes are (and so how big a feature request this is!)

oiwg avatar Mar 16 '22 15:03 oiwg

Draft 2019-09 introduces major changes including a significant number of changes described as "incompatible" and "semi-incompatible" with previous versions. That makes supporting older and newer versions with the same code base challenging. Draft 2020-12 looks more like refinements on 2019-09, but includes this: "Regular expressions are now expected (but not strictly required) to support unicode characters." jsoncons currently uses the C++ standard library regex, which does not support unicode characters.

We'll eventually have it, but there's no ETA. It looks to me to be a lot of work. We did have an inquiry about a commercial sponsorship to speed up the development, but it hasn't materialized.

danielaparker avatar Mar 16 '22 15:03 danielaparker