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

Added tests to encoded refs to unknown keywords.

Open mwadams opened this issue 2 years ago • 3 comments
trafficstars

An issue was opened against my json-schema implementation https://github.com/corvus-dotnet/Corvus.JsonSchema/issues/238

This turned out to be an implementation-specific bug that related to the handling of references to non-keyword schema islands.

While this is very much an "implementation specific" issue, it is similar to the existing refOfUnknownKeyword tests, and catches a case that is not otherwise validated, but is common in e.g. OpenAPI.

The Slack discussion is to be found:

https://json-schema.slack.com/archives/C8CQ81GKF/p1690501470341369

This PR adds tests to the existing optional/refOfUnknownKeyword.json tests in draft2020-12, draft2019-09 and draft-next.

mwadams avatar Sep 09 '23 14:09 mwadams

These specs pass against my implementation for 2019-09 and 2020-12.

I am not yet running against draft-next

image image

mwadams avatar Sep 09 '23 14:09 mwadams

Apologies! For some reason I didn't get a notification about this. I'll action it now.

mwadams avatar May 16 '24 07:05 mwadams

Surely rebasing would fix that?

karenetheridge avatar May 16 '24 17:05 karenetheridge