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

Open
#99 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
json, python
Domain
testing

Research direction

Start by reading the paper Type Safety with JSON Subschema and its figure 11, then compare the supported keyword contexts with hypothesis-jsonschema’s canonicalization tests. The issue suggests testing schemas both tools can handle and exploring the paper’s schema corpora; done means adding comparative coverage alongside the existing random-sample approach. No files or test entry points are named, so first locate the current canonicalization tests.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
281
Forks
35
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python-jsonschema/hypothesis-jsonschema

All issues in python-jsonschema/hypothesis-jsonschema

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.