Commit Graph

12 Commits

Author SHA1 Message Date
Jordan Bayles
a30ef97465 Add VALIJSON_USE_EXCEPTIONS mode
This patch adds support for a new Cmake option,
VALIJSON_USE_EXCEPTIONS. If specified and set to `0`, Valijson will
disable all exception throwing, add the `-fno-exceptions` compiler flag,
and print to std::err and abort where exceptions would have been thrown.

NOTE: to set the value of a CMake option, the easiest way is to modify
the appropriate source line in the <build folder>/CMakeCache.txt file.

Bug: #106
2020-11-08 16:58:32 -08:00
Tristan Penman
8c0d16a068 Cosmetic improvements for std_string_adapter.hpp, test_json_pointer.cpp and test_poly_constraint.cpp 2020-07-06 11:47:58 +10:00
Tristan Penman
4cf83102af Minor whitespace fix 2020-01-08 14:39:22 +11:00
Cédric CARRÉE
4338affeb3 Fix bad iterator comparaison when resolving json pointer
When resolving a json pointer and use an empty string as a
referenceToken, the value is coerced as an empty object and a temporary empty
object is returned from 'asObject()'. Then we used to compare 2
iterators from 2 differents temporary empty objects.
2020-01-07 16:36:56 +01: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
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
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
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