Commit Graph

20 Commits

Author SHA1 Message Date
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
Tristan Penman
707d466842 Update travis configuration to suppress confirmation prompts. 2014-04-18 07:36:10 +10:00
Tristan Penman
11af5466f0 Fix Ubuntu 12.04 build issues. 2014-04-17 21:31:18 +00:00
Tristan Penman
15884edc8e Add -std=c++0x flag to enable support for C++0x in Travis CI 2014-04-17 11:05:21 +10:00
Tristan Penman
17b3dff2cf Add CMake and travis configuration files for automated builds. 2014-04-17 10:58:51 +10:00
Tristan Penman
68d0ebf866 Update gtest to version 1.7.0 and fix xcode build errors. 2014-04-17 10:58:06 +10:00
Tristan Penman
5b29f915a1 Cleanup whitespace. 2014-03-01 09:03:39 +11:00
Tristan Penman
46ac9159bd Update requirements in README file, add make wrapping more consistent. 2014-03-01 08:59:43 +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