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
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
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
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
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
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
Joshua Eckroth
bbfc3f5c97
Fixed build on certain GCC toolchains
2020-11-08 11:43:37 +11:00
Tristan Penman
90783ca4be
Minor code style changes
2020-11-08 11:38:52 +11:00
Samuel
d5091b2dbb
added feature : now users can get a detailed error message when if-then-else conditional constraints are not met
2020-10-07 20:16:30 +09:00
Tristan Penman
89e37cbf42
Fix typo
2020-09-04 20:53:29 +10:00
Tristan Penman
7f01c39116
Minor suggestions from clangtidy
2020-09-04 20:47:38 +10:00
Joshua Eckroth
ccad6b140f
Switched from jsoncpp deprecated Reader to CharReader
2020-08-06 06:57:20 +00:00
Tristan Penman
0ee3bada09
Fix broken build
2020-07-17 17:20:11 +10:00
Tristan Penman
bbe62ecd7d
Merge pull request #95 from wirenboard/feature/cache-regex
...
Regex objects cache for pattern constraints
2020-07-17 16:59:47 +10:00
pete
39f350692c
Regex objects cache for pattern constraints
2020-07-15 17:09:18 +05:00
pete
2216c2b8b3
Pass visitor to validationCallback by ref
2020-07-15 16:43:46 +05:00
Delgan
1c825cc638
Remove unused parameters instead of commenting them out
2020-07-15 10:06:16 +02:00
Delgan
ca031221fc
Fix compilation errors due to unused parameters
2020-07-15 09:44:44 +02:00
Tristan Penman
d453ee2ed4
Revert breaking changes to jsoncpp_adapter.hpp
2020-07-06 19:55:07 +10:00
Tristan Penman
f3a0390e17
Revert changes to json11_adapter.hpp
2020-07-06 19:50:10 +10:00
Tristan Penman
49c20301ed
Disable -Wshadow for included header in property_tree_utils.hpp
2020-07-06 19:46:31 +10:00
Tristan Penman
77d2ef8299
Cosmetic improvements for poco_json_adapter.hpp and property_tree_adapter.hpp
2020-07-06 12:48:55 +10: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
217b990b00
Cosmetic improvements for schema_parser.hpp and validation_results.hpp
2020-07-06 11:30:41 +10:00
Tristan Penman
71f4cdaa84
Cosmetic improvements for custom_allocator.hpp
2020-07-06 11:03:11 +10:00
Tristan Penman
e46af24588
Cosmetic improvements for concrete_constraints.hpp and basic_constraint.hpp
2020-07-06 09:16:40 +10:00
Tristan Penman
7917b2f75f
Cosmetic improvements for schema.hpp, schema_parser.hpp and subschema.hpp
2020-07-05 22:38:47 +10:00
Tristan Penman
28cc9e8eeb
Cosmetic improvements for qtjson_adapter.hpp
2020-07-05 22:11:01 +10:00
Tristan Penman
508bc019ec
Cosmetic improvements for rapidjson_adapter.hpp
2020-07-05 22:02:55 +10:00
Tristan Penman
d7901d4858
Cosmetics improvements for picojson_adapter.hpp
2020-07-05 21:49:11 +10:00
Tristan Penman
3211a04dd1
Cosmetic improvements for nlohmann_json_adapter.hpp
2020-07-05 21:43:10 +10:00
Tristan Penman
0f57cb31bc
Cosmetic improvements for jsoncpp_adapter.hpp
2020-07-05 21:37:03 +10:00
Tristan Penman
e11c17c3f0
Cosmetic improvements for json11_adapter.hpp
2020-07-05 21:10:26 +10:00
Tristan Penman
6f1f4acb82
Cosmetic improvements for basic_adapter.hpp
2020-07-05 20:31:47 +10:00