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

Better testing based on paper: *Type Safety with JSON Subschema* #99

Open
Zac-HD opened this issue Oct 3, 2022 · 0 comments
Open

Better testing based on paper: *Type Safety with JSON Subschema* #99

Zac-HD opened this issue Oct 3, 2022 · 0 comments

Comments

@Zac-HD
Copy link
Member

Zac-HD commented Oct 3, 2022

Type Safety with JSON Subschema is a neat paper which explores similar canonicalization logic to hypothesis-jsonschema, and the implemenation is also in Python!

Unfortunately there are keywords that they don't support in some contexts (see fig. 11), but we should use their tool to test our own canonicalization logic for every schema that both can handle. This is probably more effective than the random-sample-based approach we're currently testing with, though as usual "do both" is likely to be better still. They also have a few corpora of schemas we could probably grab to test against.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant