Refactor memory management for schemas and constraints to improve API and allow for future improvements

This commit is contained in:
Tristan Penman
2015-12-23 14:34:04 +11:00
parent 015d463d0c
commit b1755309d2
12 changed files with 743 additions and 523 deletions

View File

@@ -46,9 +46,9 @@ TEST_F(TestValidationErrors, AllOfConstraintFailure)
ASSERT_TRUE( loadDocument(TEST_DATA_DIR "/documents/array_doubles_1_2_3.json", testDocument) );
RapidJsonAdapter testAdapter(testDocument);
Validator validator(schema);
Validator validator;
ValidationResults results;
EXPECT_FALSE( validator.validate(testAdapter, &results) );
EXPECT_FALSE( validator.validate(schema, testAdapter, &results) );
ValidationResults::Error error;