Commit Graph

  • 6c8907ce5f Remove unused forward declaration of FormatConstraint struct Tristan Penman 2016-01-14 16:01:55 +11:00
  • 0f81f72a26 Add range check to MaxItemsConstraint and MaxLengthConstraint classes Tristan Penman 2016-01-14 15:57:37 +11:00
  • 2bcaaac344 Improve encapsulation in MinPropertiesConstraint and MaxPropertiesConstraint classes Tristan Penman 2016-01-14 15:56:50 +11:00
  • 8f4dbc63c9 Fix inconsistencies in Doxygen comments Tristan Penman 2016-01-12 08:25:15 +11:00
  • 7aa0ccb468 Split MultipleOfConstraint into separate classes for integers and doubles, with improved encapsulation Tristan Penman 2016-01-12 08:21:03 +11:00
  • 14e31be16d Improve encapsulation in MinLengthConstraint and MaxLengthConstraint classes Tristan Penman 2016-01-11 21:37:12 +11:00
  • 31c0fce2b3 Improve encapsulation in MinItemsConstraint and MaxItemsConstraint classes Tristan Penman 2016-01-11 08:08:20 +11:00
  • 4d0d38566c Improve encapsulation in MinimumConstraint class Tristan Penman 2016-01-10 10:11:38 +11:00
  • 65e2c662cc Improve encapsulation in MaximumConstraint class Tristan Penman 2016-01-10 09:21:34 +11:00
  • 38c540a5d0 Fix memory leak in EnumConstraint Tristan Penman 2016-01-08 11:25:14 +11:00
  • b71de6dec0 Update PropertiesConstraint class to use custom allocator, with better encapsulation Tristan Penman 2016-01-08 10:21:42 +11:00
  • 23ff06541e Make argument names and ordering more consistent across validation functors Tristan Penman 2016-01-02 10:28:20 +11:00
  • f779b0780c Update EnumConstraint to use custom allocator for collection (but not frozen values) Tristan Penman 2016-01-02 10:27:52 +11:00
  • 99a5c2f604 Update NotConstraint to use custom allocator, with better encapsulation Tristan Penman 2015-12-31 07:44:30 +11:00
  • 05ba5bf711 Update RequiredConstraint to use custom allocator, with better encapsulation Tristan Penman 2015-12-30 07:58:54 +11:00
  • a0e1a2f74a Add custom allocator constructor to UniqueItemConstraint Tristan Penman 2015-12-30 07:33:36 +11:00
  • 00e5c051f1 Update TypeConstraint to use custom allocator for internal list of sub-schemas Tristan Penman 2015-12-29 09:28:22 +11:00
  • 000a1efc9a Fix errors in Doxygen comments Tristan Penman 2015-12-28 20:51:09 +11:00
  • db33cb833f Update PatternConstraint to use custom allocator for pattern string Tristan Penman 2015-12-28 20:34:09 +11:00
  • 2bb7ce19b2 Fix bug caused by ValidationVisitor incorrectly storing target adapter by reference Tristan Penman 2015-12-28 16:11:36 +11:00
  • 995fc96b0d Add constructor for custom alloc and free functions to SingularItemsConstraint Tristan Penman 2015-12-28 13:32:51 +11:00
  • 2ecb9c8b6b Add comments to functors in ValidationVisitor Tristan Penman 2015-12-28 13:15:12 +11:00
  • 579b0708ee Split ItemsConstraint into SingularItemsConstraint and LinearItemsConstraint, using CustomAllocator where necessary Tristan Penman 2015-12-28 13:14:41 +11:00
  • a02048cfcf Use ValidateSubschemas functor for AllOfConstraint Tristan Penman 2015-12-27 22:39:56 +11:00
  • c53268ba77 Update OneOfConstraint to use custom allocator, with better encapsulation Tristan Penman 2015-12-27 22:02:23 +11:00
  • d534c49393 Update AllOfConstraint and AnyOfConstraint classes to use custom allocator Tristan Penman 2015-12-27 19:32:30 +11:00
  • c54bf3ba87 Fix const-ness of == and != operators in CustomAllocator Tristan Penman 2015-12-27 15:43:31 +11:00
  • 40df802ba8 Add arguments for set and map constructors to compile without C++11 extensions Tristan Penman 2015-12-27 15:21:12 +11:00
  • b7e33b249a Remove unwanted propagate_on_container_move_assignment declaration from CustomAllocator Tristan Penman 2015-12-27 15:09:02 +11:00
  • c7f2f9b802 Refactor DependenciesConstraint to use custom allocator, hidden behind a more robust encapsulation strategy Tristan Penman 2015-12-27 14:51:10 +11:00
  • 76f8655d21 Allow use of custom alloc/free functions within Schema class for allocation of memory for Subschemas Tristan Penman 2015-12-24 08:23:31 +11:00
  • 49fa41ba23 Allow use of custom alloc/free functions within Subschema class, specifically for allocating memory for Constraints Tristan Penman 2015-12-24 08:03:02 +11:00
  • 99455298d8 Disable copy assignment and copy construction in Subschema class Tristan Penman 2015-12-24 07:49:45 +11:00
  • b1755309d2 Refactor memory management for schemas and constraints to improve API and allow for future improvements Tristan Penman 2015-12-23 14:34:04 +11:00
  • 015d463d0c Basic memory management for Subschema instances in Schema class Tristan Penman 2015-12-23 09:36:32 +11:00
  • 504d8f426e Merge branch 'update-travis-ci-build' Tristan Penman 2016-02-02 11:38:59 -08:00
  • 9c6e4951fd Set compiler before running Travis build script Tristan Penman 2016-02-02 11:24:24 -08:00
  • 0f7a4cdf8b Do not add apt repository for boost-latest Tristan Penman 2016-02-02 11:03:18 -08:00
  • 3a7055265e Update Travis CI build to use Ubuntu trusty; based on build config from nlohmann/json Tristan Penman 2016-02-02 10:50:33 -08:00
  • a2b119eff4 Update Travis CI build script to include verbose make output in build log Tristan Penman 2016-02-02 08:48:03 -08:00
  • d2e906e63b Add some debug output to Travis CI build script Tristan Penman 2016-02-02 08:26:18 -08:00
  • 8ee5ccbbcf Add link to nlohmann/json to README file Tristan Penman 2016-02-02 08:14:24 -08:00
  • 4dd19d6e5a Merge branch 'btolfa-modern-cpp-json' with minor changes Tristan Penman 2016-02-02 08:11:52 -08:00
  • 3e0a2d667e Add #pragma once to header files Tristan Penman 2016-02-02 08:11:03 -08:00
  • 4c384420c7 Add new files for nlohmann/json to Xcode project Tristan Penman 2016-02-02 08:07:19 -08:00
  • 491bafe256 Minor stylistic changes for consistency with existing code Tristan Penman 2016-02-02 08:05:57 -08:00
  • 3fa4807bcf Update travis build script to add -DBOOST_NO_CXX11_ALLOCATOR compiler flag for clang++ builds Tristan Penman 2016-02-02 07:54:45 -08:00
  • f88cc803cd Implement test adapter comparison for nlohmann/json Tengiz Sharafiev 2016-02-02 17:19:09 +03:00
  • 8b069ccd23 Implement nlohmann/json utils Tengiz Sharafiev 2016-02-02 17:18:28 +03:00
  • c1ac8ba194 Implement adapter for nlohmann/json Tengiz Sharafiev 2016-02-02 16:50:31 +03:00
  • d8e217cb60 Implement test for nlohmann/json adapter Tengiz Sharafiev 2016-02-02 13:08:59 +03:00
  • 992fa11736 Add empty header from nlohmann/json adapter Tengiz Sharafiev 2016-02-02 13:04:20 +03:00
  • 5959c31172 Add nlohman/json library Tengiz Sharafiev 2016-02-02 12:51:45 +03:00
  • f6476167b5 Update README to include link to json11 Tristan Penman 2016-02-01 11:38:50 -08:00
  • a1d330e285 Merge branch 'hotwatermorning-master' with minor changes Tristan Penman 2016-01-29 17:59:27 -08:00
  • 8c35752f50 Update builds in Xcode project to use project defaults for deployment target and whether to strip debug symbols Tristan Penman 2016-01-29 17:31:43 -08:00
  • 564f9df30f Remove redundant const references that didn't really aid readability Tristan Penman 2016-01-29 17:30:43 -08:00
  • b9570e92c1 Minor tweak to capitalisation of json11 in comment Tristan Penman 2016-01-29 17:30:11 -08:00
  • 69c855cbfd Add json11 library to Xcode project files Tristan Penman 2016-01-28 19:35:38 -08:00
  • 94ea214bb0 Fix CMakeLists.txt to use json11 if compiler supports c++11. hotwatermorning 2016-01-28 13:35:44 +09:00
  • 57ed4783e3 Merge branch 'master' of https://github.com/tristanpenman/valijson hotwatermorning 2016-01-28 13:18:54 +09:00
  • 303332a209 Disable json11 unless VALIJSON_BUILD_CXX11_ADAPTERS macro is defined. hotwatermorning 2016-01-28 13:16:08 +09:00
  • 3117ce1100 Suppress output from pushd and popd in travis build script Tristan Penman 2016-01-27 10:16:14 -08:00
  • b7bf364b98 Move Travis CI build steps to separate script that can build/run tests with C++11 enabled (when compiled with clang) Tristan Penman 2016-01-27 10:12:05 -08:00
  • 1a3a703298 Add flag to CMakeLists file to allow C++11 support to be enabled, with an appropriate preprocessor definition passed to the compiler Tristan Penman 2016-01-27 09:40:07 -08:00
  • 67e93e21ae Fix condition of isInteger. hotwatermorning 2016-01-26 14:49:42 +09:00
  • 851aa78167 Add test cases for Json11. hotwatermorning 2016-01-26 14:42:49 +09:00
  • 04dc77b87c Support dropbox/json11. hotwatermorning 2016-01-26 13:19:40 +09:00
  • 4c6bf5d12c Add json11 files. hotwatermorning 2016-01-26 13:26:33 +09:00
  • a64c3c4e30 Update type checks in ValidatorVisitor to use allow loose type conversions when strictTypes flag is not set Tristan Penman 2016-01-16 12:58:52 +11:00
  • 222e593733 Use asBool() instead of getBool() when parsing 'additionalItems' and 'required' constraints Tristan Penman 2016-01-14 21:47:54 +11:00
  • 29367ccf0b Use asBool() instead of getBool() to get value of uniqueItems constraint Tristan Penman 2016-01-14 21:41:17 +11:00
  • 476d2c645a Remove unnecessary include form property_tree_utils.hpp Tristan Penman 2016-01-13 17:17:51 +11:00
  • 067fd1c48b Add test_picojson_adapter.cpp to Xcode project file Tristan Penman 2016-01-08 11:26:07 +11:00
  • 71a6b64e0e Allow SchemaParser to track path to current node in recursive populateSchema calls Tristan Penman 2015-12-22 18:25:07 +11:00
  • cdabbe5549 Update SchemaParser to pass optional resolution scope with recursive fn calls Tristan Penman 2015-12-13 13:09:12 +11:00
  • 79267593f3 Remove unwanted arguments from publicly accessible populateSchema function Tristan Penman 2015-12-13 13:11:10 +11:00
  • 00686e26f0 Add header file with placeholder functions for working with absolute and relative URIs Tristan Penman 2015-12-13 12:56:12 +11:00
  • 3365287ef0 Add support for decoding %-encoded characters in JSON Pointer path fragments Tristan Penman 2015-12-19 10:08:03 +11:00
  • 592e6db083 Move functionality from Schema class to a new Subschema class (superclass for Schema), and remove dead code Tristan Penman 2015-12-22 10:26:51 +11:00
  • 0227384534 Add support for 'description' and 'title' attributes Tristan Penman 2015-12-21 23:20:29 +11:00
  • 9ec9a37222 Fix minor issues raised by Doxygen and add a few missing doc-comments Tristan Penman 2015-12-20 08:16:16 +11:00
  • 032414bf8f Update Xcode project files for Xcode 7 and remove unwanted customisations from libjsoncpp build Tristan Penman 2015-12-16 15:25:29 +11:00
  • 56beb45300 Add 'remotes' schema files from JSON-Schema-Test-Suite Tristan Penman 2015-12-12 19:24:06 +11:00
  • 6546a9a945 Adapt existing tests to cover GenericRapidJsonAdapter when using a value type backed by RapidJson's CrtAllocator Tristan Penman 2015-12-07 22:01:06 +11:00
  • 414c46b423 Rename RapidJsonAdapter template class to GenericRapidJsonAdapter and add typedefs for old class names Tristan Penman 2015-11-27 09:57:14 +11:00
  • e7da07f60a (#7) Generalize rapidjson adapter for GenericValue Michael Smith 2015-11-05 11:10:43 -08:00
  • 650f122a79 Fix incorrect return value for maybeObject() method in BasicAdapter template class Tristan Penman 2015-11-24 14:28:56 +11:00
  • 4e941e75d9 Add debug flags to CMakeLists file Tristan Penman 2015-10-23 11:37:38 +11:00
  • 6b8a394cbf Update BasicAdapter to use strtod instead of istringstream for string-to-double conversions Tristan Penman 2015-10-19 11:55:21 +11:00
  • dc8ad3669e Add Valgrind suppressions file for Mac OS X system libraries Tristan Penman 2015-10-19 11:54:52 +11:00
  • cd21f7b250 Fix uninitialised value issues detected by Valgrind when using older versions of RapidJson Tristan Penman 2015-10-18 20:29:16 +11:00
  • 2c712fd29f Update README with more info about JSON References Tristan Penman 2015-10-17 08:41:09 +11:00
  • 9216f5f6f1 Fix build issues and compiler warnings with MSVC 2013 Tristan Penman 2015-10-17 08:27:39 +11:00
  • 9b3779a57b Move functions for parsing/unpacking JSON Reference strings to separate header file Tristan Penman 2015-10-16 21:33:40 +11:00
  • b54e0b85ae Rename compiler guard for json_pointer.hpp and correct comment after closing of namespace Tristan Penman 2015-10-15 14:37:21 +11:00
  • 05214c6630 Include property name in validation error when unmatched against properties or regexes in PropertiesConstraint Tristan Penman 2015-10-13 13:10:43 +11:00
  • 4f4f9cf81b Include exception details when parsing fails in external_schema example Tristan Penman 2015-10-13 13:04:14 +11:00
  • e21b31295f Add picojson_adapter.hpp to Xcode project file Tristan Penman 2015-10-13 13:03:35 +11:00
  • 43f7be480a Allow schema parser to resolve local JSON references from root of document Tristan Penman 2015-10-13 12:09:46 +11:00