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
Tristan Penman
661fa1f6d6
Fix signed/unsigned comparisons in tests
2016-02-02 15:06:17 -08:00
Tristan Penman
c53268ba77
Update OneOfConstraint to use custom allocator, with better encapsulation
2016-02-02 15:06:15 -08:00
Tristan Penman
b1755309d2
Refactor memory management for schemas and constraints to improve API and allow for future improvements
2016-02-02 15:06:14 -08:00
Tristan Penman
491bafe256
Minor stylistic changes for consistency with existing code
2016-02-02 08:05:57 -08:00
Tengiz Sharafiev
f88cc803cd
Implement test adapter comparison for nlohmann/json
2016-02-02 17:50:35 +03:00
Tengiz Sharafiev
c1ac8ba194
Implement adapter for nlohmann/json
2016-02-02 17:50:35 +03:00
Tengiz Sharafiev
d8e217cb60
Implement test for nlohmann/json adapter
2016-02-02 17:50:35 +03:00
hotwatermorning
303332a209
Disable json11 unless VALIJSON_BUILD_CXX11_ADAPTERS macro is defined.
2016-01-28 13:16:08 +09:00
hotwatermorning
851aa78167
Add test cases for Json11.
2016-01-26 14:43:09 +09:00
hotwatermorning
04dc77b87c
Support dropbox/json11.
2016-01-26 14:43:09 +09:00
Tristan Penman
592e6db083
Move functionality from Schema class to a new Subschema class (superclass for Schema), and remove dead code
2015-12-22 10:26:51 +11:00
Tristan Penman
6546a9a945
Adapt existing tests to cover GenericRapidJsonAdapter when using a value type backed by RapidJson's CrtAllocator
2015-12-07 22:01:06 +11:00
Tristan Penman
7c4d935f4c
Add check for hyphen used as array index in JSON Pointer
2015-06-19 08:54:49 +10:00
Tristan Penman
5387aaf076
Support ~0 and ~1 character escape sequences in JSON Reference tokens
2015-06-17 10:00:13 +10:00
Tristan Penman
ba05594f53
Ensure picojson.h is included earlier in tests and add note about header include ordering to README
2015-05-12 08:21:14 +10:00
Hiroyuki Kobayashi
24d993dcd2
Support picojson library
2015-05-09 00:41:44 +09:00