Represent large number types as strings 75/84775/11
authorMario Abraham <mario.abraham@pantheon.tech>
Fri, 27 Sep 2019 09:00:08 +0000 (11:00 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 7 Oct 2019 10:01:12 +0000 (10:01 +0000)
commitaf02c59d72a4f6af9361ea2842c35e634f6454e4
treebccfb349a0e65f560b520fc49a509cc69b7c6287
parent6c70f2b315960611004245950729daa5fa2aa5c0
Represent large number types as strings

A value of the int64, uint64 and decimal64 type is
represented as a JSON string related to rfc 7951.

Issue-ID: YANGTOOLS-1027
Change-Id: Ic6aea0a0f97e042ed40d2e0be323557750401621
Signed-off-by: Mario Abraham <mario.abraham@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONCodecFactory.java
yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONCodecFactorySupplier.java
yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/Lhotka02JSONCodecFactory.java [new file with mode: 0644]
yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/RFC7951JSONCodecFactory.java [new file with mode: 0644]
yang/yang-data-codec-gson/src/test/java/org/opendaylight/yangtools/yang/data/codec/gson/AbstractYT1027Test.java [new file with mode: 0644]
yang/yang-data-codec-gson/src/test/java/org/opendaylight/yangtools/yang/data/codec/gson/Lhotka02YT1027Test.java [new file with mode: 0644]
yang/yang-data-codec-gson/src/test/java/org/opendaylight/yangtools/yang/data/codec/gson/RFC7951YT1027Test.java [new file with mode: 0644]
yang/yang-data-codec-gson/src/test/resources/yt1027/yt1027.yang [new file with mode: 0644]