Tristan Penman
222e593733
Use asBool() instead of getBool() when parsing 'additionalItems' and 'required' constraints
2016-01-14 21:47:54 +11:00
Tristan Penman
29367ccf0b
Use asBool() instead of getBool() to get value of uniqueItems constraint
2016-01-14 21:41:17 +11:00
Tristan Penman
476d2c645a
Remove unnecessary include form property_tree_utils.hpp
2016-01-13 17:17:51 +11:00
Tristan Penman
067fd1c48b
Add test_picojson_adapter.cpp to Xcode project file
2016-01-08 11:26:07 +11:00
Tristan Penman
71a6b64e0e
Allow SchemaParser to track path to current node in recursive populateSchema calls
2015-12-22 18:25:07 +11:00
Tristan Penman
cdabbe5549
Update SchemaParser to pass optional resolution scope with recursive fn calls
2015-12-22 17:40:45 +11:00
Tristan Penman
79267593f3
Remove unwanted arguments from publicly accessible populateSchema function
2015-12-22 17:33:24 +11:00
Tristan Penman
00686e26f0
Add header file with placeholder functions for working with absolute and relative URIs
2015-12-22 11:06:15 +11:00
Tristan Penman
3365287ef0
Add support for decoding %-encoded characters in JSON Pointer path fragments
2015-12-22 10:36:20 +11: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
0227384534
Add support for 'description' and 'title' attributes
2015-12-21 23:20:29 +11:00
Tristan Penman
9ec9a37222
Fix minor issues raised by Doxygen and add a few missing doc-comments
2015-12-20 08:16:16 +11:00
Tristan Penman
032414bf8f
Update Xcode project files for Xcode 7 and remove unwanted customisations from libjsoncpp build
2015-12-16 15:25:29 +11:00
Tristan Penman
56beb45300
Add 'remotes' schema files from JSON-Schema-Test-Suite
2015-12-12 19:25:25 +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
414c46b423
Rename RapidJsonAdapter template class to GenericRapidJsonAdapter and add typedefs for old class names
2015-12-04 08:18:17 +11:00
Michael Smith
e7da07f60a
( #7 ) Generalize rapidjson adapter for GenericValue
...
We've found the rapidjson MemoryPoolAllocator is buggy on SPARC, and for
the moment we're avoiding it as not being a large performance benefit.
The adapter assumes MemoryPoolAllocator, so we can't use valijson
without it. Templatize the rapidjson adapter so it can be used more
generically.
2015-12-04 08:18:17 +11:00
Tristan Penman
650f122a79
Fix incorrect return value for maybeObject() method in BasicAdapter template class
2015-11-24 14:28:56 +11:00
Tristan Penman
4e941e75d9
Add debug flags to CMakeLists file
2015-10-23 11:37:38 +11:00
Tristan Penman
6b8a394cbf
Update BasicAdapter to use strtod instead of istringstream for string-to-double conversions
2015-10-19 11:55:21 +11:00
Tristan Penman
dc8ad3669e
Add Valgrind suppressions file for Mac OS X system libraries
2015-10-19 11:54:52 +11:00
Tristan Penman
cd21f7b250
Fix uninitialised value issues detected by Valgrind when using older versions of RapidJson
2015-10-18 20:29:16 +11:00
Tristan Penman
2c712fd29f
Update README with more info about JSON References
2015-10-17 08:41:09 +11:00
Tristan Penman
9216f5f6f1
Fix build issues and compiler warnings with MSVC 2013
2015-10-17 08:27:39 +11:00
Tristan Penman
9b3779a57b
Move functions for parsing/unpacking JSON Reference strings to separate header file
2015-10-16 21:33:40 +11:00
Tristan Penman
b54e0b85ae
Rename compiler guard for json_pointer.hpp and correct comment after closing of namespace
2015-10-15 14:37:21 +11:00
Tristan Penman
05214c6630
Include property name in validation error when unmatched against properties or regexes in PropertiesConstraint
2015-10-13 13:10:43 +11:00
Tristan Penman
4f4f9cf81b
Include exception details when parsing fails in external_schema example
2015-10-13 13:04:14 +11:00
Tristan Penman
e21b31295f
Add picojson_adapter.hpp to Xcode project file
2015-10-13 13:03:35 +11:00
Tristan Penman
43f7be480a
Allow schema parser to resolve local JSON references from root of document
2015-10-13 12:09:46 +11:00
Tristan Penman
600aeb97a6
Merge pull request #6 from shsfre09/change_behavior_oneof_constraint_error
...
Push oneOf constraint error only when validation fails actually
2015-07-06 17:35:48 +02:00
Hiroyuki Kobayashi
04ff1dec15
Push oneOf constraint error only when validation fails actually
2015-07-06 22:52:55 +09: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
3ac87e9af2
Add picojson to xcode project
2015-06-17 09:37:51 +10:00
Tristan Penman
e601e10af2
Replace usage of u_int32_t with uint32_t in utf8_utils.h
2015-05-19 22:16:00 +10:00
Tristan Penman
f627ef6e15
Add README.md and LICENSE to Xcode project
2015-05-14 08:13:00 +10:00
Tristan Penman
fb5daa587a
Restructure README and include example usage snippets
2015-05-14 08:09:38 +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
Tristan Penman
e1a59c09ba
Merge branch 'shsfre09-support_picojson'
2015-05-12 08:16:57 +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
b3b94fb86b
Disable auto-linking in Doxygen
2015-05-07 09:08:35 +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
669b1729c8
Add tests for JSON Pointer resolution to CMake build
2015-05-06 16:11:48 +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
b4d7f76b25
Simplify JSON Pointer resolution, improve comments / wording for consistency with spec
2015-05-06 12:50:07 +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