Commit Graph

393 Commits

Author SHA1 Message Date
Adam Sunderland
b4940a6e91 Add #include cstring 2016-10-31 12:21:56 -05:00
Tristan Penman
19e1c06a68 Add clang 3.8 to Travis CI build and remove old build script 2016-09-15 22:32:02 -07:00
Tristan Penman
67d8389357 Update JSON-Schema-Test-Suite to latest version 2016-09-15 20:56:03 -07:00
Tristan Penman
9afdf3b821 Update Authors file 2016-09-14 07:13:37 -07:00
Tristan Penman
8a5282d61e Merge pull request #32 from 0x4d52/master
Added an empty virtual destructor to the ConstraintVisitor class.
2016-09-14 07:11:48 -07:00
Martin Robinson
2e9d147c99 Added an empty virtual destructor to the ConstraintVisitor class. 2016-09-13 10:23:07 +01:00
Tristan Penman
60eba9d391 Merge pull request #31 from nicolas800/master
Using std::function instead of function pointer in type FunctionPtrs
2016-09-12 20:54:54 -07:00
Nicolas Witczak
8adbe3e959 Using std::function instead of function pointer in type FunctionPtrs 2016-09-12 10:19:07 +02:00
Tristan Penman
07690e070e Merge branch 'noboost' 2016-08-15 22:34:18 -07:00
Tristan Penman
f6690be593 Update README re: boost dependency and instead mention requirement for C++11 2016-08-15 22:32:47 -07:00
Tristan Penman
b484b41e3f Remove support for non-C++11 builds from main CMakeLists file and update boost dependency 2016-08-15 22:32:47 -07:00
Tristan Penman
f01916571f Fix build so that test_suite is always compiled and linked against embedded json11 and jsoncpp libraries 2016-08-15 22:32:47 -07:00
Tristan Penman
fe7e19494c Fix decrement operator in PropertyTreeObjectMemberIterator 2016-08-15 22:32:47 -07: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
b698164ebe Remove non-C++11 and gcc 4.9 stages from Travis CI build script 2016-08-15 22:32:47 -07:00
Tristan Penman
38e6b05afa Minor correction re: support for definitions 2016-07-28 19:55:18 -07:00
Tristan Penman
424b706f99 Merge branch 'add-buildroot-support' 2016-04-09 08:22:28 +10:00
Tristan Penman
4a543d53e3 Build tests by default 2016-04-09 08:15:49 +10:00
Tristan Penman
d8babe314b Merge branch 'santoshmulthalli-buildrootchanges' into add-buildroot-support 2016-04-09 08:15:14 +10:00
Bimal Jacob
0c5de11cb2 CMake: Add conditional check for options
Signed-off-by: Bimal Jacob <bimal.jacob@rockwellcollins.com>
Signed-off-by: Santosh Multhalli <santosh.multhalli@rockwellcollins.com>
2016-04-09 08:14:49 +10:00
Santosh Multhalli
0c645c53f3 Add options for Building Installing valijson headers and remove -Werror from CMAKE_CXX_FLAGS 2016-04-09 08:14:49 +10:00
Tristan Penman
efa2aec72b Merge branch 'add-constraint-builder' 2016-04-08 08:51:08 +10:00
Tristan Penman
b056534585 Xcode project upgrade check and removal of redundant build settings 2016-04-08 08:50:42 +10:00
Tristan Penman
521a1033fa Add space between two > characters for compiler friendliness 2016-04-08 08:40:56 +10:00
Tristan Penman
836f17c827 Use more appropriate itr dereference operator in SchemaParser destructor 2016-04-08 08:29:04 +10:00
Tristan Penman
40f0f4868c Make custom constraint loop C++03 friendly 2016-04-08 08:26:57 +10:00
Tristan Penman
078ee62301 Move ConstraintBuilder to its own header file and update SchemaParser to explicitly take ownership of a ConstraintBuilder by pointer 2016-04-08 08:24:05 +10:00
Tristan Penman
9ad441dfbe Remove potentially risky overloads of addConstraint function and make existing impl more exception safe 2016-04-08 08:22:32 +10:00
Tristan Penman
3a67760e4b Merge branch 'jhjensen-constraint_builder' into add-constraint-builder 2016-04-08 07:33:02 +10:00
James Jensen
94cd71fe09 Allow subclassing ValidationResults.
I use this because our Path constraint needs information global to the current validator(the root of the document).
The natural place for this would be in a subclass of Validator, but by the time we are in the validation visitor we don't have access to that.
I prefer not to use a global because that would introduce threading issues.  That leaves putting the state in the results.
2016-04-07 11:49:57 -04:00
James Jensen
acffebd74e Add ConstraintBuilder, allowing the user to add constraints to the json schema language 2016-04-07 11:40:11 -04:00
James Jensen
f3eb9edb7b fix some more -wall warnings. 2016-04-07 11:40:10 -04:00
James Jensen
ade9662e1f make cloneInto private, because calling it with the wrong size allocation would be bad. 2016-04-07 11:36:39 -04:00
Tristan Penman
28bcbcbbb2 Merge branch 'add-poly-constraint' 2016-04-07 10:07:20 +10:00
Tristan Penman
e66413e97f Alphabetise class names 2016-04-07 09:56:57 +10:00
Tristan Penman
32e89abcda Remove potentially risky overloads of addConstraintToSubschema function 2016-04-07 09:56:24 +10: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
Tristan Penman
3d5526ec7b Add remaining authors to Authors file 2016-04-07 09:53:00 +10:00
Tristan Penman
9cd9fbd3cb Merge branch 'jhjensen-poly_constraint' into add-poly-constraint 2016-04-07 08:48:35 +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
00d0fa8d43 Merge branch 'schema-parser-ref-support-rewrite' 2016-03-30 18:51:32 +11:00
Tristan Penman
e2a011edc0 Fix errors introduced during rebase 2016-03-20 14:10:07 +11:00
Tristan Penman
9f94ad5883 Update doxygen comment for SchemaParser::makeOrReuseSchema, and wrap several lines of code to match coding style 2016-03-20 14:10:06 +11:00
Tristan Penman
747ca4afd1 Update README with information about JSON Reference support 2016-03-20 14:10:06 +11: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