Tristan Penman
dd32f66df8
Build tests for fuzzing
2022-02-04 11:00:17 +11:00
Tristan Penman
bfb5860cbd
Fix fuzzer build
2022-01-10 07:35:04 +11:00
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
7b6d22f166
Update CMakeLists.txt to check for boost/json.hpp before building tests
2021-10-06 20:33:39 +11: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
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
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
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
cb778b6bb6
Minor changes to address msvc warnings and make cmake work on Windows
2021-05-17 14:00:55 +10: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
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
8150a52008
Cosmetic improvements for test_adapter_comparison.cpp
2020-07-05 22:19:54 +10:00
Tristan Penman
aa0f766b03
Merge branch 'master' of github.com:tristanpenman/valijson
2020-06-03 19:56:37 +10:00
Tristan Penman
8febb456f4
Merge remote-tracking branch 'origin/master' into v6-and-v7-support
2020-06-03 19:54:48 +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
6287656e2b
Implement propertyNames constraint
2019-10-10 13:23:42 +11:00
Tristan Penman
0abf633bc0
Fix typos in tests
2019-09-26 10:59:45 +10:00
Tristan Penman
5f8c73fdf7
Update 'dependencies' constraint to pass v7 tests
2019-09-24 21:46:03 +10:00
Tristan Penman
5430e79754
Update 'required' constraint to match v7 tests
2019-09-24 21:22:15 +10:00
Tristan Penman
98d804a367
Add support for const constraint
2019-09-24 20:38:45 +10:00
Tristan Penman
f71355b90f
Add support for 'contains' constraint
2019-09-24 14:08:45 +10:00
Tristan Penman
866f5761bf
Improve support for boolean subschemas
2019-08-31 21:37:55 +10:00
Tristan Penman
c89d1d89cd
Add passing test cases for draft 7
2019-08-30 11:00:21 +10:00
Tristan Penman
c210d07c61
Update AllOfConstraint and AnyOfConstraint to support draft 7
2019-08-30 10:33:56 +10:00
Tristan Penman
a285ed0fbe
Add test cases for draft 7 exclusiveMaximum, exclusiveMinimum, maximum and minimum constraints
2019-08-29 22:21:30 +10:00
Tristan Penman
925ff8ff68
Initial support for 'if', 'then' and 'else' subschemas
2019-08-29 10:31:37 +10:00
Tristan Penman
c8dfd94035
Merge remote-tracking branch 'origin/master' into v6-and-v7-support
2019-08-27 12:38:34 +10:00
Tristan Penman
dbe09e0bab
Tidy up handling of optional dependencies
2019-08-27 12:19:27 +10:00
Tristan Penman
0f9e8cacf8
Disable unnecessary C++11 checks in source code
2019-08-20 22:38:19 +10:00
Tristan Penman
2de198ea2e
Automated test support for Poco JSON adapter
2017-05-31 15:01:31 +10:00
drewxa
e943e3ef94
add poco json adapter
...
* new adapter
* util
* tests
2017-05-24 15:36:50 +03:00
plamot
2c0477c30a
qtjson utils and tests update
2017-03-27 01:20:24 +02:00
Pierre Lamot
b8b2634ad6
add support for Qt Json parser
...
http://doc.qt.io/qt-5/json.html
2017-03-06 16:38:02 +01:00
Tristan Penman
29721d5538
Minor tweaks for consistency with coding style
2016-08-15 22:32:47 -07: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
99e870ca5d
Flesh out API for PolyConstraint concept, simplify test cases and add new files to Xcode project
2016-04-07 09:55:13 +10:00
James Jensen
8f446704f7
Add polymorphic constraint, and modifications neccessary for using them
...
Modify CMakeLists.txt to make third party include files be included by -isystem. This reduces external warnings/errors.
Add a unit test for the PolyConstraints. The test doesn't pass, because the right method for inserting a constraint isn't clear to me.
Add Authors file for tracking modifications
Add Akamai to the License file.
2016-04-06 16:20:39 -04:00
Tristan Penman
c81403df80
Fix handling of schema scope (based on 'id' attribute) and enable refRemote tests
2016-03-20 14:10:06 +11:00
Tristan Penman
a5649408a0
Enable 'ref' tests from JSON Schema Test Suite
2016-03-20 14:10:06 +11:00
Tristan Penman
193c58da02
Update document fetch interface to use underlying document type rather than Adapter
2016-03-20 14:10:06 +11:00
Tristan Penman
bee57e1f90
Update SchemaParser to fully support schema caching
2016-03-20 14:10:06 +11:00
Tristan Penman
7f4db481c7
Remove shared_ptrs from fetch document interface, and add a 'free' callback that is used to release memory after parsing
2016-03-20 14:10:06 +11:00