gbv/jskos-validate

Fix issue with lax schemas

Closed this issue · 1 comments

Lax schemas (i.e. option unknownFields is set to true) don't work correctly. I'm going to add a simple failing test case to the dev branch.

Fixed in https://github.com/gbv/jskos. The issue was that oneOf instead of anyOf was used, and for my particular example, there were now two options fulfilled in the oneOf array, causing it to fail instead.