YANG 1.1 metamodel has added invert-match modifier, which instructs enforcement to trigger when the pattern is matched rather than not matched.
Codecs perform enforcement, but fail to account for the modifier, which means they are doing the wrong thing.