Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added tests to encoded refs to unknown keywords. #683

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mwadams
Copy link
Contributor

@mwadams mwadams commented Sep 9, 2023

An issue was opened against my json-schema implementation corvus-dotnet/Corvus.JsonSchema#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 mwadams requested a review from a team as a code owner September 9, 2023 14:44
@mwadams
Copy link
Contributor Author

mwadams commented Sep 9, 2023

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

I am not yet running against draft-next

image
image

@Julian Julian added the waiting for author A pull request which is waiting for an update from its author. label Sep 13, 2023
@mwadams
Copy link
Contributor Author

mwadams commented May 16, 2024

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

@karenetheridge
Copy link
Member

Surely rebasing would fix that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for author A pull request which is waiting for an update from its author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants