342 Commits

Author SHA1 Message Date
Mark Gillard
3ce2c4e0a6 Enable using boost::regex instead of std::regex 2025-05-06 17:35:06 +03:00
Julien Marrec
88de63f752
Eliminate an avoidable std::regex and replace with RegexEngine 2025-04-22 21:00:34 +02:00
Tristan Penman
6064db1c6c Changes to make property tree adapter compile with C++17 2025-03-27 17:09:11 +11:00
Tristan Penman
7d59abf50c Fix uninitialised variable, update README 2025-02-08 18:21:40 +11:00
Tristan Penman
caa3ef055c Use statically allocated regexes for date/time pattern matching 2025-02-08 17:46:25 +11:00
Tristan Penman
4e2dfd1390 Allow permissive validation of date/time formats 2025-02-08 15:48:57 +11:00
Tristan Penman
b151d1e99a Detect certain JSON reference cycles while parsing schemas 2024-12-22 19:42:08 +11:00
Josh Soref
3581168091 spelling: value
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 21:10:57 -10:00
Josh Soref
b18ba8d777 spelling: the
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
e50c8d2b2b spelling: the name of
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
769453eb93 spelling: satisfies
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
33de946dd0 spelling: satisfied
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
c34b49fbc9 spelling: present
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
95431d3d6e spelling: preexisting
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
39d88c7c3d spelling: invocations
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
43dd86e18c spelling: internal
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
a61c60a4d2 spelling: id
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
b231763704 spelling: higher
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
183919dd07 spelling: hierarchy
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
52b27287c3 spelling: for
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
a35817de30 spelling: contained
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
b54dcfe6e8 spelling: constraints
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
0ce6c378d9 spelling: constraint
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Josh Soref
b25260f98b spelling: case-sensitive
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-12-11 20:11:45 -10:00
Tristan Penman
cc6ca369d3
Merge pull request #197 from tyler92/fix-buffer-overflow
Fix buffer overflow in u8_strlen
2024-10-22 10:03:24 +11:00
Tristan Penman
ad1e184b1c
Merge pull request #199 from tyler92/stack-overflow-invalid-ref
Fix stack overflow for unresolved references
2024-10-21 20:42:00 +11:00
Tristan Penman
65d4d68373 Fix up include grouping 2024-10-21 09:45:24 +11:00
Mikhail Khachayants
63c56dd730 Prevent potential division by zero 2024-10-21 00:16:06 +03:00
Mikhail Khachayants
1c67b948b6 Fix stack overflow for unresolved references 2024-10-20 13:47:54 +03:00
Mikhail Khachayants
b7c051fbc1 Fix buffer overflow in u8_strlen 2024-10-19 00:02:36 +03:00
Tristan Penman
fc9ddf14db Fix bug in difference() for rapidjson 2024-08-28 13:02:35 +10:00
Tristan Penman
a0e05907ae Tidy up regex changes 2024-05-17 08:52:22 +10:00
sandwoodK
2431bdeaa6 Ability to customize regular expression engine 2024-05-02 09:18:28 +02:00
BohdanBuinich
c54607119d Compatibility with boost-1.85.0
Starting from boost version 1.85.0, json::error_code is now deprecated

Changes added here:
bacc644f93
2024-04-23 01:08:04 +03:00
Tristan Penman
27f7e75ca1
Merge pull request #187 from jackorobot/move_schema
Implemented functioning move constructors/operators
2024-01-07 11:41:11 +11:00
Maarten van der Schrieck
a40ec5ea96 Various fixes, reducing compiler warnings.
My compiler gave various warnings, which are easily fixed.
- redundant ";"
- missing NORETURN attributes
- inline @param documentation not in line with functions
- include guard prefix "_" is reserved
2024-01-06 22:30:26 +01:00
Jesse Hoogervorst
299fe1c78d Implemented Schema and Subschema move constructor and assignment operators.
Default implementations were not sufficient, since raw pointers are not actually moved correctly automatically, resulting in segmentation faults.
2024-01-04 15:05:37 +01:00
Jesse Hoogervorst
37dceaa5db Added explicit default move constructor/operator to Schema and Subschema to enable move semantics for these classes 2023-12-15 10:44:18 +01:00
Tristan Penman
afc92d5428 Change isString to IsString 2023-12-15 10:54:41 +11:00
Dominic Reber
5d7a6c5c4c Fix isString() method in yaml_cpp_adapter 2023-12-13 15:48:55 +01:00
Tristan Penman
0b7efb3763 Make subschema constraint validation clearer 2023-08-24 20:45:43 +10:00
Tristan Penman
138c3785ef Tweak behaviour of format constraint validation 2023-08-24 09:37:44 +10:00
Tristan Penman
92b9514bde Revert "fail with the first unmet constraint to avoid running into type mismatches"
This reverts commit aee67d58f05972555bfd1e7ce5451da4333e6348.

I believe the original intention of this code was to fall through to
later constraints, even if earlier constraints were not satisfied. This
is not captured by any of the tests in the test suite, which is an
oversight on my part.
2023-08-24 09:18:24 +10:00
Marco Porsch
aee67d58f0 fail with the first unmet constraint to avoid running into type mismatches 2023-08-23 15:42:06 +02:00
Marco Porsch
f716227d0a check the type constraint first because others might rely on it 2023-08-23 15:41:15 +02:00
yekuang
94ca772cc7
[Build] Make it work on Linux (#1) 2023-06-07 22:52:25 +08:00
Cheng Cao
780bf06715 Rework adapter to build on VS 2022 with latest JSON for modern C++ 2023-06-05 14:50:43 -07:00
Chris Brumgard
9e5b479b95 Fixed validation_visitor to work with adaptors that only support the
forward_iterator_tag for array value iterators.
2023-05-18 10:11:37 -04:00
Austin Haigh
f1ff351828 fix typos in preprocessor macros 2022-11-01 13:29:16 -06:00
Tristan Penman
78ac8a737d Correct token replacement issue 2022-10-26 21:01:58 +11:00