fix: matching required paths with slashes by adamskeeled · Pull Request #2367 · eclipsesource/jsonforms

In JSON Pointers two characters need to be escaped: '~' is converted to '~0' and '/' is converted to '~1'.
When JSON Paths contain one of these two characters, when trying to check whether those path are required, the isRequired function is used. That function compares the scoped path (which in this case is the encoded path with the converted symbols) with the closest required array (which contains the original unencoded path with either ~ or /).

Before checking the required array, we need to decode the scoped path so the comparison works properly.

Fixes #2366