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.
- Navigate to JSON-Schema-Test-Suite
- Choose a draft
draft4
,draft6
ordraft7
- Copy & paste the
test-case.json
to the project and add a test like in thedraft4.test.js