CiscoDevNet / ydk-gen

Generate model-driven APIs from YANG models
http://ciscodevnet.github.io/ydk-gen/
Apache License 2.0
137 stars 74 forks source link

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

Closed ygorelik closed 1 year ago

ygorelik commented 5 years ago

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 commented 1 year ago

Too old version to support.