mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 10:13:51 +01:00
Update 'dependencies' constraint to pass v7 tests
This commit is contained in:
parent
5430e79754
commit
5f8c73fdf7
@ -1410,7 +1410,7 @@ private:
|
||||
// exercised the flexibility by loosely-typed Adapter types. If the
|
||||
// value of the dependency mapping is an object, then we'll try to
|
||||
// process it as a dependent schema.
|
||||
} else if (member.second.isObject()) {
|
||||
} else if (member.second.isObject() || (version == kDraft7 && member.second.maybeBool())) {
|
||||
// Parse dependent subschema
|
||||
const Subschema *childSubschema =
|
||||
makeOrReuseSchema<AdapterType>(rootSchema, rootNode,
|
||||
|
@ -463,7 +463,10 @@ TEST_F(TestValidator, Draft7_Contains)
|
||||
|
||||
// TOOD: untested default
|
||||
|
||||
// TODO: untested dependencies
|
||||
TEST_F(TestValidator, Draft7_Dependencies)
|
||||
{
|
||||
processDraft7TestFile(TEST_SUITE_DIR "draft7/dependencies.json");
|
||||
}
|
||||
|
||||
TEST_F(TestValidator, Draft7_Enum)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user