Normalize Decimal64 to fraction-digits 70/101270/11
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 23 May 2022 18:19:57 +0000 (20:19 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 25 May 2022 11:20:39 +0000 (13:20 +0200)
commit415dfd816cdbefe5088ee62046f372690ab89aa7
tree5e0d80a60f18314cc8281e5b46e4cd44d6c3aa94
parentc6624c7716ea59e4df3cb7bf90d172e81a544be5
Normalize Decimal64 to fraction-digits

When parsing a Decimal64, we need to scale it to fraction-digits
to ensure the input matches the expected range.

JIRA: YANGTOOLS-1437
Change-Id: I535eab4a20d30a742e94c3a6342e113cb569d0bf
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
data/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/codec/DecimalStringCodec.java
data/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/codec/DecimalCodecStringTest.java
data/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/codec/YT1437Test.java [new file with mode: 0644]
data/yang-data-impl/src/test/resources/yt1437.yang [new file with mode: 0644]