JSON-Schema-Test-Suite
You can find all test cases here. It contains a set of JSON objects that implementors of JSON Schema validation libraries can use to test their validators.
How to add another test case?
- Navigate to JSON-Schema-Test-Suite
- Choose a draft
draft4,draft6ordraft7 - Copy & paste the
test-case.jsonto the project and add a test like in thedraft4.test.js