Open rawat-he opened 2 years ago
Hi,
I have yang model with below definition
leaf interval { description "the maximum time in seconds"; type decimal64 { fraction-digits 1; range "1.0..60.0" { error-message "Invalid value for attribute 'interval'. Valid values are in range:[1.0,60.0]"; } } default "13.0"; }
json2xml with
json2xml
"interval": "13.0"
<interval>13.</interval>
<interval>13.0</interval>
This line is stripping the zeros json2xml.
Is this a bug or expected implementation?
Fixed in PR #819. Thanks!
Much thanks for the quick fix.
Hi,
I have yang model with below definition
json2xml
withInput JSON
Generated XML
Expected XML
This line is stripping the zeros json2xml.
Is this a bug or expected implementation?