Commit Graph

489 Commits

Author SHA1 Message Date
Keith Bennett
1f25558c21 make shellcheck clean
`$ bash ./shellcheck.sh`
```
Checking: /home/kbennett/src/public/valijson/tests/fuzzing/oss-fuzz-build.sh
Checking: /home/kbennett/src/public/valijson/shellcheck.sh
All scripts found (listed above) passed shellcheck
```
2022-01-06 16:05:37 -06:00
Tristan Penman
3c185cb896
Merge pull request #145 from mporsch/smart-pointer-memory-management 2021-12-25 22:35:48 +11:00
Marco Porsch
828fc87623 use implicit conversion of unique_ptr<T, DeleterA> to unique_ptr<const T, DeleterB>
relies on DeleterB being constructible from DeleterA
also uses that T* can always be converted to void* (but not the other way around)
2021-12-20 10:37:47 +01:00
Marco Porsch
cf841e10e9 use unique_ptr for memory management in constraints and subschema 2021-12-09 15:33:25 +01:00
Tristan Penman
4a99dd79d0 Add missing include 2021-12-07 09:53:09 +11:00
Tristan Penman
75ada05cf8 Use strong types in external_schema example, and update README 2021-11-06 08:53:39 +11:00
Tristan Penman
26f3a8476f Less const-ness 2021-11-06 08:44:09 +11:00
Tristan Penman
3eaf1bb93e Add note about VALIJSON_USE_EXCEPTIONS to the README 2021-11-05 09:59:35 +11:00
Tristan Penman
4990e352a7 Update inspector to enable and handle exceptions 2021-11-05 08:57:42 +11:00
Tristan Penman
af071f0198 Update inspector build to work with Qt6 2021-11-05 08:33:43 +11:00
Tristan Penman
7b6d22f166 Update CMakeLists.txt to check for boost/json.hpp before building tests 2021-10-06 20:33:39 +11:00
Tristan Penman
5da8973097
Merge pull request #139 from YangJiao1996/master
Always apply callback function when validating schema
2021-10-06 10:57:22 +11:00
Yang Jiao
0f0cc2bc55 Always apply callback function when validating schema 2021-10-05 18:23:27 -04:00
Tristan Penman
9a2ebbdec2
Merge pull request #137 from veselypeta/readme-cmake
update README add with cmake
2021-09-17 09:24:26 +10:00
veselypeta
e5530febe7 update README add with cmake 2021-09-16 14:34:05 +01:00
Tristan Penman
2dfc7499a3 Update Authors file 2021-09-15 16:23:10 +10:00
Tristan Penman
6dab4978be Update README and tweak syntax in Boost.JSON adapter 2021-09-15 10:15:03 +10:00
Tristan Penman
2ecd211952
Merge pull request #136 from matty0ung/boostjson
Add support for Boost.JSON
2021-09-15 10:12:26 +10:00
Tristan Penman
b1119cccd6
Merge pull request #135 from matty0ung/uris
Support fetching sub-schemas from other files
2021-09-11 09:14:30 +10:00
Matt Young
f5cf601efa Add Boost.JSON support 2021-09-10 08:55:03 +02:00
Matt Young
14325788f8 Add Boost.JSON support 2021-09-10 08:54:00 +02:00
Matt Young
d3104ea8d8 Support fetching sub-schemas from other files 2021-09-09 19:27:13 +02:00
Tristan Penman
ad7dac75a5
Merge pull request #133 from rayvincent2/feature/add-urn-reference-support
Add support for urn document references
2021-08-26 10:12:09 +10:00
Ray Vincent
3442709aa7 Update urn regex expression to be std::regex safe 2021-08-25 16:57:33 -07:00
Ray Vincent
f787a8a7a7 Update urn regex to match widely accepted expression 2021-08-24 13:51:32 -07:00
Ray Vincent
653d515d32 Ensure that urn regex checks to end of string 2021-08-24 13:43:00 -07:00
Ray Vincent
eac0859cd8 Ensure that urn NID cannot include '.' 2021-08-24 13:39:05 -07:00
Ray Vincent
ef42dae296 Add support for urn document references 2021-08-23 15:45:49 -07:00
Tristan Penman
a4684c285d Fix path to rapidjson in fuzzing test code 2021-07-31 11:00:37 +10:00
Tristan Penman
11af652228 Merge remote-tracking branch 'clainio/build-fix' 2021-07-29 17:44:58 +10:00
Tristan Penman
c5487c39eb Update rapidjson to latest code from github 2021-07-29 07:31:00 +10:00
Tristan Penman
6a04040d4f Update adapters to avoid inheriting from std::iterator 2021-07-28 22:19:36 +10:00
Tristan Penman
385d2d8306 Improve handling of compiler flags when exceptions are disabled 2021-07-28 21:05:26 +10:00
Tristan Penman
82e093fe18 Upgrade gtest to v1.11.0 2021-07-28 19:27:28 +10:00
Tristan Penman
c63ac26f03 Disable C4702: unreachable code warnings for json_pointer.hpp 2021-07-28 17:09:45 +10:00
Tristan Penman
855365bce0 Disable C4702: unreachable code warnings within relevant headers 2021-07-28 16:58:15 +10:00
Konstantin Plotnikov
5c97e3ccd4
Fix gcc build error 2021-06-25 18:02:19 +03: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