3
votes

I have been looking for a good sample data set of json schemas and corresponding valid and invalid json instances.

I have only found a few test sets in some github projects:

https://github.com/xeipuuv/gojsonschema/tree/master/json_schema_test_suite

https://github.com/fge/json-schema-validator

However the data sets are pretty simple and do not cover all cases.

Does anyone know any good repository with this kind of data set?

1
Uh, you haven't really looked in depth; my implementation (your second link) is very heavily tested. But I test keywords individually...fge

1 Answers

2
votes

The official test suite is: https://github.com/json-schema/json-schema-test-suite

Those tests should cover all features (draft v3 and v4), including optional features.