Added json-patch validation 'remove' info
In json validation added json-path info for keys that didn't described in json-schema as 'remove'.
This commit is contained in:
parent
0be4d4c4b5
commit
92c2b517f2
@ -1030,6 +1030,9 @@ class object : public schema
|
|||||||
a_prop_or_pattern_matched = true;
|
a_prop_or_pattern_matched = true;
|
||||||
schema_p->second->validate(ptr / p.key(), p.value(), patch, e);
|
schema_p->second->validate(ptr / p.key(), p.value(), patch, e);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
patch.remove(ptr / p.key());
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef NO_STD_REGEX
|
#ifndef NO_STD_REGEX
|
||||||
// check all matching patternProperties
|
// check all matching patternProperties
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user