Commit Graph

453 Commits

Author SHA1 Message Date
Tristan Penman
855365bce0 Disable C4702: unreachable code warnings within relevant headers 2021-07-28 16:58:15 +10:00
Tristan Penman
4897d102bd Fix exclusiveMaximum and exclusiveMinimum error messages 2021-06-11 13:43:09 +10:00
Tristan Penman
6cc4cddc96 Suppress boost warnings that aren't relevant to the test suite 2021-05-24 10:00:16 +10:00
Tristan Penman
2cf8d3dd2e Add default tests for draft 7 2021-05-21 10:20:44 +10:00
Tristan Penman
e94179e191 Add definitions tests for draft 7 2021-05-21 10:11:45 +10:00
Tristan Penman
bb2c425104 Improve array_iteration_basics example 2021-05-20 22:14:22 +10:00
Tristan Penman
e6909b155c Add required test for draft 4 2021-05-20 22:03:35 +10:00
Tristan Penman
df89869e00 Add maxLength and minLength tests for draft 7 2021-05-20 21:36:20 +10:00
Tristan Penman
9183462118 Fix return type on getMinLength 2021-05-20 17:01:37 +10:00
Tristan Penman
3740dc5166 Explicitly initialise optionals in Subschema class 2021-05-20 16:07:07 +10:00
Tristan Penman
cb778b6bb6 Minor changes to address msvc warnings and make cmake work on Windows 2021-05-17 14:00:55 +10:00
Tristan Penman
70f12ed1d4
Merge pull request #123 from anishmonachan7/fix_unused_variable
fix unused variable error with gcc 8.3
2021-04-08 08:54:13 +10:00
anishmonachan7
03b8cccb27
Update include/valijson/constraints/concrete_constraints.hpp
Co-authored-by: Tristan Penman <tristan@tristanpenman.com>
2021-04-07 15:24:04 +02:00
Anish
dc6d2fe0e7 fix unused variable error with gcc 8.3 2021-04-07 12:39:39 +02:00
Tristan Penman
77bae9fb74 Fix xcode stuff 2021-04-04 13:33:13 +10:00
Tristan Penman
66262bafb8 Include nlohmann/json.hpp instead of json.hpp 2021-04-04 13:25:10 +10:00
Tristan Penman
b3b958c8c0
Merge pull request #121 from anishmonachan7/virtual_destructor
destructor to virtual destructor
2021-04-03 15:59:45 +11:00
Anish
84c9fbf52c destructor to virtual destructor 2021-04-02 11:09:55 +02:00
Tristan Penman
8a784f23bf Minor fix for example code in README 2021-01-25 09:54:24 +11:00
Tristan Penman
a19e1c00f0 Remove warning suppressions for clang 2021-01-24 15:47:57 +11:00
Tristan Penman
af2358b63f Use custom RAPIDJSON_ASSERT macro to catch parser errors 2021-01-24 14:06:15 +11:00
Tristan Penman
7ab96207c5 Ensure ref values are strings 2021-01-17 17:42:55 +11:00
Tristan Penman
635f36f095
Merge pull request #119 from BSipos-RKF/issue-118
Possible fix for #118
2021-01-17 16:56:00 +11:00
Tristan Penman
fba5a9e8a7 Reject JSON references that index into empty arrays 2021-01-17 13:34:52 +11:00
Brian Sipos
cbcde15c0b Possible fix for #118 2021-01-12 13:12:57 -05:00
Tristan Penman
3621f98d43 Update rapidjson_utils.hpp to use iterative parsing 2021-01-07 21:34:51 +11:00
Tristan Penman
f544cd020a
Merge pull request #116 from AdamKorcz/fuzz1
Add fuzzer with oss-fuzz build script
2020-12-17 09:39:17 +11:00
AdamKorcz
c13eed99d1 Minor refactoring 2020-12-16 12:32:37 +00:00
AdamKorcz
3a47f0cd0d Added fuzzer with oss-fuzz build file 2020-12-16 12:30:36 +00:00
Tristan Penman
cf64893031
Merge pull request #114 from baylesj/fix-memory-leak
Fix memory leak in concrete constraints
2020-12-03 10:44:56 +11:00
Jordan Bayles
1f964c1299 Fix memory leak in concrete constraints
This patch fixes a memory leak found from ASAN testing. There may be
more here, but this is the only one blocking our workflow.
2020-12-02 11:16:41 -08:00
Tristan Penman
7cb31947d8
Merge pull request #113 from hei-pa/master
move curlpp findPackage in EXAMPLES block
2020-12-02 21:40:06 +11:00
Pascal Heinrich
8cc83c8be9 move curlpp findPackage in EXAMPLES block 2020-12-02 10:01:36 +01:00
Tristan Penman
c1e75c700f
Merge pull request #110 from baylesj/remote_throws
Add VALIJSON_USE_EXCEPTIONS mode
2020-11-09 16:51:19 +11:00
Jordan Bayles
bc81adbd3f add version checks around BOOST_NORETURN 2020-11-08 21:40:01 -08:00
Jordan Bayles
7a560db2ed Fixup headers
This patch removes the include for boost's internal suffix.hpp header,
in favor of just including the throw_exception.hpp header.
2020-11-08 21:21:54 -08:00
Jordan Bayles
b8e9581057 Apply feedback, add boost version check 2020-11-08 19:54:53 -08:00
Jordan Bayles
8f6f9b6a80 Use deprecated declarations 2020-11-08 17:18:14 -08:00
Jordan Bayles
f100614249 Cleanup unnecessary returns 2020-11-08 17:04:52 -08:00
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
8a700811d5 Add JSON Inspector example app 2020-11-08 17:33:37 +11:00
Joshua Eckroth
bbfc3f5c97 Fixed build on certain GCC toolchains 2020-11-08 11:43:37 +11:00
Tristan Penman
84b67fa6fe
Merge pull request #107 from baylesj/readme
Minor tweaks to README.md file
2020-11-08 11:40:15 +11:00
Tristan Penman
90783ca4be Minor code style changes 2020-11-08 11:38:52 +11:00
Tristan Penman
3dd4482af2
Merge pull request #103 from wwriter/cond_schema_errormessage
Generate a detailed error message when if-then-else constraints are not met
2020-11-08 11:36:08 +11:00
Jordan Bayles
ee4f85bf5e Minor tweaks to README.md file
This patch cleans up the README.md file to use more language markup
instead of raw text.
2020-11-06 17:19:18 -08:00
Tristan Penman
a703886214 Update jsoncpp link in readme 2020-11-06 13:24:57 +11:00
Tristan Penman
abedaf0ecb
Merge pull request #105 from baylesj/update-jsoncpp
Update JsonCpp to 1.9.4
2020-11-06 13:23:26 +11:00
Jordan Bayles
825ee11008 Fix readme 2020-11-05 17:44:13 -08:00
Jordan Bayles
b6b6f167ad Delete jsoncpp fuzzing stuff 2020-11-05 17:42:26 -08:00