drewxa
e943e3ef94
add poco json adapter
...
* new adapter
* util
* tests
2017-05-24 15:36:50 +03:00
plamot
2c0477c30a
qtjson utils and tests update
2017-03-27 01:20:24 +02:00
plamot
51c916c029
Provide proper implementation of isInteger for qtjson
2017-03-22 00:38:26 +01:00
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
JustCameToHelp
e3ac11e52b
Corrected reporting of array indices violating uniqueItems constraint.
2017-01-29 13:40:13 +01:00
Tristan Penman
22bf9f2278
Add explicit qualifier to single-argument FrozenValue constructors
2016-11-07 23:01:13 -08:00
Tristan Penman
032a8bdcf2
Remove unused variable from nlohmann_json_utils.hpp
2016-11-07 23:00:25 -08:00
Tristan Penman
187c66d06c
Add missing return statement to CustomAllocator::operator=
2016-11-07 22:58:58 -08:00
Tristan Penman
c5f2852029
Merge pull request #34 from iterion/topic/add-iterator-accessor
...
Add iterator accessors to ValidationResult class
2016-11-07 21:21:07 -08:00
Adam Sunderland
bc8120f531
Add iterator accessor
...
Move iterators to results class
2016-11-07 17:13:03 -06:00
Tristan Penman
c04b82c47a
Remove unnecessary destructor from ValidationResults class
2016-11-04 09:04:36 -07:00
Adam Sunderland
b4940a6e91
Add #include cstring
2016-10-31 12:21:56 -05:00
Martin Robinson
2e9d147c99
Added an empty virtual destructor to the ConstraintVisitor class.
2016-09-13 10:23:07 +01:00
Nicolas Witczak
8adbe3e959
Using std::function instead of function pointer in type FunctionPtrs
2016-09-12 10:19:07 +02: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
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
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
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
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
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
c81403df80
Fix handling of schema scope (based on 'id' attribute) and enable refRemote tests
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
bc14ef8064
Split makeOrReuseSchema function in SchemaParser class to allow JSON Reference chains to be cached
2016-03-20 14:10:06 +11:00
Tristan Penman
8796b563fe
Update SchemaParser so that constraints will be able to re-use existing subschemas in schema cache
2016-03-20 14:10:06 +11:00
Tristan Penman
a74ce3fb2c
Add helper function to SchemaParser to sanitise JSON Pointers (and ensure that they have consistent endings)
2016-03-20 14:10:06 +11:00
Tristan Penman
39da77d17e
Add helper function to SchemaParser to handle extraction of JSON References
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
348ba26596
Add placeholder data structures to SchemaParser class to eventually support document/schema caches
2016-03-20 14:10:06 +11:00
Tristan Penman
c4d0c063c7
Merge branch 'jhjensen-warnfix'
2016-03-03 08:34:01 +11:00
Tristan Penman
1ade1c55ef
Ensure validation of 'properties' constraint resumes after failure if validation results are being collected
2016-03-03 08:15:36 +11:00
Tristan Penman
85ea0d581d
Add missing spaces to validation error messages
2016-03-03 08:14:30 +11:00
James Jensen
910b0da48e
fix warning-errors exposed by -Wall -Werror in gcc4.9
...
it doesn't like unused variables, misordered initializers, and comparing signed with unsigned.
2016-03-01 11:39:23 -05:00
Tristan Penman
e9b50162bf
Ensure validation state is not discarded after checking for an 'additionalProperties' constraint
2016-02-17 08:47:13 -08:00
Tristan Penman
b241b37d7a
Ensure empty arrays are handled correctly for uniqueItems constraint
2016-02-17 08:38:42 -08:00
Tristan Penman
70f066b3f9
Only enable clang-specific pragmas when clang is actually being used
2016-02-02 22:21:08 -08:00
Tristan Penman
5085804d80
Minor variation in spelling of warning to be ignored
2016-02-02 22:15:16 -08:00