Commit Graph

8 Commits

Author SHA1 Message Date
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
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
f604f11ada Fix memory corruption issue in schema parser. 2014-04-17 23:06:48 +00:00
Tristan Penman
11af5466f0 Fix Ubuntu 12.04 build issues. 2014-04-17 21:31:18 +00: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
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