Bug 5968: Mandatory leaf enforcement does not work in some cases
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / OperationWithModification.java
index 72221770cd0393c06223900b4a4313525bf2ac25..87c196b8b9fde0fd353a65498d3ab88f517b2091 100644 (file)
@@ -38,8 +38,10 @@ final class OperationWithModification {
          * written. In order to do that, we first pretend the data was written, run verification and
          * then perform the merge -- with the explicit assumption that adding the newly-validated
          * data with the previously-validated data will not result in invalid data.
+         *
+         * Fast validation of structure, full validation on data will be run during seal.
          */
-        applyOperation.verifyStructure(data, true);
+        applyOperation.verifyStructure(data, false);
         applyOperation.mergeIntoModifiedNode(modification, data, version);
     }