ydk-gen icon indicating copy to clipboard operation
ydk-gen copied to clipboard

YDK-0.5.5 codec fails to report mismatch between payload and model

Open ygorelik opened this issue 5 years ago • 0 comments

The issue appears in YDK-0.5.5.

Expected Behavior

When payload string content does not correspond to referenced model, the YDK should report an error during that string decoding.

Current Behavior

When decoding payload string, which content does not correspond to referenced model, the YDK silently skips unmatched tags making impression that decoding has completely succeeded.

Steps to Reproduce

Decode XML or JSON encoded payload, which does not correspond to Yang model.

Your Script

TBD


System Information

YDK-0.5.5. The issue does not appear in YDK-0.7.x and up, because of underlying libyang base.

ygorelik avatar Apr 16 '19 22:04 ygorelik