diff --git a/include/valijson/schema_parser.hpp b/include/valijson/schema_parser.hpp index e3d0c7f..9980927 100644 --- a/include/valijson/schema_parser.hpp +++ b/include/valijson/schema_parser.hpp @@ -48,7 +48,7 @@ public: /** * @brief Release memory associated with custom ConstraintBuilders */ - virtual ~SchemaParser() + virtual ~SchemaParser() { for (const auto& entry : constraintBuilders) { delete entry.second; diff --git a/tests/test_validator.cpp b/tests/test_validator.cpp index d8ea284..95d55a8 100644 --- a/tests/test_validator.cpp +++ b/tests/test_validator.cpp @@ -512,6 +512,11 @@ TEST_F(TestValidator, Draft7_MaxItems) processDraft7TestFile(TEST_SUITE_DIR "draft7/maxItems.json"); } +TEST_F(TestValidator, Draft7_MaxLength) +{ + processDraft7TestFile(TEST_SUITE_DIR "draft7/maxLength.json"); +} + TEST_F(TestValidator, Draft7_MaxProperties) { processDraft7TestFile(TEST_SUITE_DIR "draft7/maxProperties.json"); @@ -527,6 +532,11 @@ TEST_F(TestValidator, Draft7_MinItems) processDraft7TestFile(TEST_SUITE_DIR "draft7/minItems.json"); } +TEST_F(TestValidator, Draft7_MinLength) +{ + processDraft7TestFile(TEST_SUITE_DIR "draft7/minLength.json"); +} + TEST_F(TestValidator, Draft7_MinProperties) { processDraft7TestFile(TEST_SUITE_DIR "draft7/minProperties.json");