Commit Graph

92 Commits

Author SHA1 Message Date
Pierre Lamot
b8b2634ad6 add support for Qt Json parser
http://doc.qt.io/qt-5/json.html
2017-03-06 16:38:02 +01:00
Tristan Penman
29721d5538 Minor tweaks for consistency with coding style 2016-08-15 22:32:47 -07:00
Tristan Penman
3d3f76df10 Add missing #includes and remove usage of json_parser_error type for boost property_trees 2016-08-15 22:32:47 -07:00
Lars Immisch
b6854612a4 This patch drops boost as a dependency from the valijson core.
It is based on https://github.com/tristanpenman/valijson/pull/28, but squashed and rebased for simplicity.

See the original https://github.com/tristanpenman/valijson/pull/28 for history.
2016-08-15 22:32:47 -07:00
Tristan Penman
99e870ca5d Flesh out API for PolyConstraint concept, simplify test cases and add new files to Xcode project 2016-04-07 09:55:13 +10:00
James Jensen
8f446704f7 Add polymorphic constraint, and modifications neccessary for using them
Modify CMakeLists.txt to make third party include files be included by -isystem.  This reduces external warnings/errors.

Add a unit test for the PolyConstraints.  The test doesn't pass, because the right method for inserting a constraint isn't clear to me.

Add Authors file for tracking modifications

Add Akamai to the License file.
2016-04-06 16:20:39 -04:00
Tristan Penman
c81403df80 Fix handling of schema scope (based on 'id' attribute) and enable refRemote tests 2016-03-20 14:10:06 +11:00
Tristan Penman
a5649408a0 Enable 'ref' tests from JSON Schema Test Suite 2016-03-20 14:10:06 +11:00
Tristan Penman
193c58da02 Update document fetch interface to use underlying document type rather than Adapter 2016-03-20 14:10:06 +11:00
Tristan Penman
bee57e1f90 Update SchemaParser to fully support schema caching 2016-03-20 14:10:06 +11:00
Tristan Penman
7f4db481c7 Remove shared_ptrs from fetch document interface, and add a 'free' callback that is used to release memory after parsing 2016-03-20 14:10:06 +11:00
Tristan Penman
661fa1f6d6 Fix signed/unsigned comparisons in tests 2016-02-02 15:06:17 -08:00
Tristan Penman
c53268ba77 Update OneOfConstraint to use custom allocator, with better encapsulation 2016-02-02 15:06:15 -08:00
Tristan Penman
b1755309d2 Refactor memory management for schemas and constraints to improve API and allow for future improvements 2016-02-02 15:06:14 -08:00
Tristan Penman
491bafe256 Minor stylistic changes for consistency with existing code 2016-02-02 08:05:57 -08:00
Tengiz Sharafiev
f88cc803cd Implement test adapter comparison for nlohmann/json 2016-02-02 17:50:35 +03:00
Tengiz Sharafiev
c1ac8ba194 Implement adapter for nlohmann/json 2016-02-02 17:50:35 +03:00
Tengiz Sharafiev
d8e217cb60 Implement test for nlohmann/json adapter 2016-02-02 17:50:35 +03:00
hotwatermorning
303332a209 Disable json11 unless VALIJSON_BUILD_CXX11_ADAPTERS macro is defined. 2016-01-28 13:16:08 +09:00
hotwatermorning
851aa78167 Add test cases for Json11. 2016-01-26 14:43:09 +09:00
hotwatermorning
04dc77b87c Support dropbox/json11. 2016-01-26 14:43:09 +09:00
Tristan Penman
592e6db083 Move functionality from Schema class to a new Subschema class (superclass for Schema), and remove dead code 2015-12-22 10:26:51 +11:00
Tristan Penman
6546a9a945 Adapt existing tests to cover GenericRapidJsonAdapter when using a value type backed by RapidJson's CrtAllocator 2015-12-07 22:01:06 +11:00
Tristan Penman
7c4d935f4c Add check for hyphen used as array index in JSON Pointer 2015-06-19 08:54:49 +10:00
Tristan Penman
5387aaf076 Support ~0 and ~1 character escape sequences in JSON Reference tokens 2015-06-17 10:00:13 +10:00
Tristan Penman
ba05594f53 Ensure picojson.h is included earlier in tests and add note about header include ordering to README 2015-05-12 08:21:14 +10:00
Hiroyuki Kobayashi
24d993dcd2 Support picojson library 2015-05-09 00:41:44 +09:00
Tristan Penman
e13784c58a Use unambiguous overload of [] operator in JSON Pointer array indexing tests 2015-05-07 10:10:33 +10:00
Tristan Penman
3900596a72 Check array bounds when dereferencing JSON Pointer containing array index 2015-05-07 09:35:28 +10:00
Tristan Penman
b4c2dbd875 Fix array indexing bug in JSON Pointer implementation 2015-05-07 09:07:26 +10:00
Tristan Penman
c43c8568f5 Rename json_reference namespace to json_pointer and move unrelated functionality back into SchemaParser class 2015-05-06 18:46:39 +10:00
Tristan Penman
4f88bb8941 Allow for redundant slashes in reference tokens, as per spec 2015-05-06 14:33:14 +10:00
Tristan Penman
fb1f08181d Refactor JSON Pointer test cases into generalised test runner and test cases 2015-05-06 07:03:20 +10:00
Tristan Penman
454ec19914 Add test for single-level JSON pointer to object member 2015-05-05 20:55:37 +10:00
Tristan Penman
f42a4f9458 Lift rough JSON Pointer resolution functions into separate file 2015-05-05 16:18:21 +10:00
Tristan Penman
d206f79760 Refactor handling of JSON References and fetching of remote documents 2015-05-04 11:01:03 +10:00
Tristan Penman
1ea6c9b185 Implement draft 3 divisibleBy constraint based on draft 4 multipleOf constraint 2015-04-02 06:32:06 +11:00
Tristan Penman
b377609efa Implement multipleOf constraint using std::remainder 2015-03-22 22:10:19 +11:00
Tristan Penman
467368d022 Improve contexts for error reporting, and fix unicode bug. 2014-06-15 22:09:38 +10:00
Tristan Penman
11af5466f0 Fix Ubuntu 12.04 build issues. 2014-04-17 21:31:18 +00:00
Tristan Penman
5b29f915a1 Cleanup whitespace. 2014-03-01 09:03:39 +11:00
Tristan Penman
4c9864de73 Initial commit.
This commit contains the third major design of a C++ library for JSON Schema validation.

It is definitely not what I would consider production-ready, but I do think that the overall design of the library is robust.
2013-10-30 07:51:11 +11:00