You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MoshiPack should decode TestClass that contains an enum without issues.
Actual behaviour
Unpacking crashes with com.squareup.moshi.JsonDataException: Required value 'number' missing at $
Steps to reproduce behaviour
enumclassTestEnum { A, B }
data classTestClass(valdata:TestEnum, valnumber:Int)
val moshiPack =MoshiPack()
val buffer =Buffer()
buffer.writeAll(moshiPack.pack(TestClass(TestEnum.A, 12)))
println(moshiPack.unpack<TestClass>(buffer))
The text was updated successfully, but these errors were encountered:
Expected behaviour
MoshiPack should decode TestClass that contains an enum without issues.
Actual behaviour
Unpacking crashes with
com.squareup.moshi.JsonDataException: Required value 'number' missing at $
Steps to reproduce behaviour
The text was updated successfully, but these errors were encountered: