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
Tristan Penman
feaea37aee
Move JSON Pointer leading slash check out of recursive function
2015-05-06 07:02:27 +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
e1add18889
Reduce string copying in JSON pointer resolution
2015-05-05 20:52:29 +10:00
Tristan Penman
f42a4f9458
Lift rough JSON Pointer resolution functions into separate file
2015-05-05 16:18:21 +10:00
Tristan Penman
e8bb484011
Update Xcode project files
2015-05-04 11:06:20 +10:00
Tristan Penman
4e8997c9ac
Update test suite sources in CMakeList.txt file
2015-05-04 11:03:59 +10:00
Tristan Penman
f4179477db
Fix README file so that it doesn't cause warnings when processed by doxygen
2015-05-04 11:01:44 +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
46d496b5fb
Update SchemaParser to return Adapter instances for JSON reference deref
2015-05-01 15:11:12 +10:00
Tristan Penman
19da922101
Update README to remove divisibleBy exception
2015-04-02 08:38:44 +11: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
04cebebcfd
Add char* constructor to RapidJsonFrozenValue to further remove ambiguity
2015-03-23 17:37:21 +11:00
Tristan Penman
f647e75557
Make construction of frozen value from rapidjson::Value explicit to remove ambiguity
2015-03-23 17:28:45 +11:00
Tristan Penman
9cd913a5cd
Update RapidJsonAdapter to be compatible with both embedded and latest versions of RapidJSON
2015-03-23 17:01:10 +11:00
Tristan Penman
d538c698c9
Update Doxygen configuration to include README and fix misplaced @deprecated tag
2015-03-23 14:28:19 +11:00
Tristan Penman
88d9edc136
Remove invalid @todos
2015-03-22 22:31:22 +11:00
Tristan Penman
2f332e4223
Use remainder from cmath instead of numeric (which is only defined for C++11)
2015-03-22 22:23:39 +11:00
Tristan Penman
4c93d0ec0a
Remove notes about multipleOf from README file
2015-03-22 22:20:33 +11:00
Tristan Penman
b377609efa
Implement multipleOf constraint using std::remainder
2015-03-22 22:10:19 +11:00
Tristan Penman
27c065b37f
Add missing 'Documentation' heading to README
2015-03-20 16:23:12 +11:00
Tristan Penman
55406945d8
Update README with latest version numbers, build info, and project goals
2015-03-20 16:22:12 +11:00
Tristan Penman
7a6d22ebeb
Suppress warning about implicit unsigned long to int conversion in boost::property_tree
2015-03-17 13:17:23 +11:00
Tristan Penman
048f4b5144
Fix custom_schema example and include it in the CMake build
2015-03-15 15:38:40 +11:00
Tristan Penman
630703c627
Move jsoncpp build into separate library in Xcode project to contain compiler warnings
2015-03-15 15:29:34 +11:00
Tristan Penman
9ea602d13a
Upgrade to jsoncpp 0.9.4
2015-03-15 12:24:34 +11:00
Tristan Penman
f0f9a7826c
Merge pull request #2 from richardc/boost-1.57
...
fixups needed for boost 1.57
2015-02-08 13:00:49 +11:00
Richard Clamp
ae4127d530
Fixup for compilation on boost 1.57
...
In boost 1.57 the + and - operations are no longer overloaded on the iterator
constants by default causing the following error:
.../include/valijson/validation_visitor.hpp:930:76:
error: no match for ‘operator-’ (operand types are ‘const const_iterator {aka const valijson::adapters::RapidJsonArrayValueIterator}’ and ‘int’)
const typename AdapterType::Array::const_iterator secondLast = end - 1;
The ++ operator is still valid, so here we rework in terms of it.
2015-02-04 13:00:32 +00:00
Richard Clamp
3f9183c714
(maint) search the Boost_INCLUDE_DIRS for headers
2015-02-04 12:59:48 +00:00
Tristan Penman
701dff66ed
Merge pull request #1 from richardc/boost.1.56
...
Fix compatibility with boost 1.56+
2014-11-27 08:24:37 +11:00
Richard Clamp
2ac5d96852
Fix compatibility with boost 1.56+
...
In boost 1.56 the optional library is no longer happy with the implicit
conversion from boost::optional<std::string> to bool, so we get the following
errors:
valijson/include/valijson/schema.hpp:177:16: error: no viable conversion from 'const boost::optional<std::string>' to 'bool'
return id;
^~
valijson/include/valijson/schema.hpp:188:16: error: no viable conversion from 'const boost::optional<std::string>' to 'bool'
return title;
^~~~~
2 errors generated.
Here we explicitly test against boost::none instead.
2014-11-26 13:54:05 +00:00
Tristan Penman
467368d022
Improve contexts for error reporting, and fix unicode bug.
2014-06-15 22:09:38 +10:00
Tristan Penman
280250dbc8
Update CMake build to include external_schema example, and add usage info to external_schema.cpp.
2014-06-15 15:24:26 +10:00
Tristan Penman
89b58d84c8
Remove redundant makefile.
2014-06-15 15:18:21 +10:00
Tristan Penman
cc5dd6c99b
Attempt to fix Travis CI apt-get issue.
2014-06-15 14:22:12 +10:00
Tristan Penman
031ca48079
Make min/max length constraints unicode-aware so that strings containing non-ASCII characters are handled correctly.
2014-06-15 13:35:16 +10:00
Tristan Penman
94d9a923c3
Merge 192.168.0.13:~/valijson
2014-04-18 09:07:01 +10:00
Tristan Penman
f604f11ada
Fix memory corruption issue in schema parser.
2014-04-17 23:06:48 +00:00