Commit Graph

57 Commits

Author SHA1 Message Date
Patrick Boettcher
1e50a93626 Fix #44: format-checker-callback was not used, is now 2019-01-13 18:05:44 +01:00
Patrick Boettcher
7beb40bc61 Complete rewrite of the validator - aiming a 2.0-release
Schema a now "parsed" into C++-validator-objects in a first
step and then validation takes place with these objects.

Errors are now handled via a user-provided error-handler
allowing the user to collect all errors at once or bail out
when a certain threshold is reached. Fixes #36 and #8.

One (sub-)schema can now be referenced with different URIs. Fixes #9

JSON schema draft 7 is now supported. Fixes #35
2018-12-27 16:59:19 +01:00
Patrick Boettcher
16aa1c05c7 tests: test for explicit false exclusivity 2018-04-24 18:48:26 +02:00
Patrick Boettcher
57f7809532 tests: add draft4-tests from json-schema-test-suite to this repo 2018-04-18 11:49:36 +02:00
Patrick Boettcher
7daba70db3 cmake: use relative path to source-file
If this project is used via `add_subdirectory()` the
json-schema-test.cpp was not found.
2018-04-17 23:11:10 +02:00
Patrick Boettcher
c552c7c02a tests: add some issue-regression-tests 2018-03-30 12:26:52 +02:00
Patrick Boettcher
b2240084fe validator: rework everything to handle local and remote refs
Added json-uri and json-pointer-classes and a schema-preparation-pass.
2016-12-26 23:48:57 +01:00