We want to add the PositiveIntegerAsStringSerializerexperimental type, in the types-kotlinx-serialization subproject, for serializing instances of the PositiveInteger type as String.
class PositiveIntegerAsStringSerializer : KSerializer<PositiveInteger> {
override val descriptor: SerializerDescriptor
override fun equals(other: Any?): Boolean
override fun hashCode(): Int
override fun serialize(encoder: Encoder, value: PositiveInteger)
override fun deserialize(decoder: Decoder): PositiveInteger
override fun toString(): String
}
This serializer should be available for all Kotlin platforms.
π Dependencies
This issue is blocked by the following items:
[ ] #661
β Checklist
[ ] β¨ Add the type and its public constructor with documentation, samples and tests.
[ ] β¨ Override the toString function with documentation, samples and tests.
[ ] β¨ Override structural equality operations (equals and hashCode functions) with documentation, samples and tests.
[ ] β¨ Make the type implementing the KSerializer<PositiveInteger> type with documentation, samples and tests.
[ ] π Update the unreleased changelog for this issue.
π Description
We want to add the
PositiveIntegerAsStringSerializer
experimental type, in thetypes-kotlinx-serialization
subproject, for serializing instances of thePositiveInteger
type asString
.This serializer should be available for all Kotlin platforms.
π Dependencies
This issue is blocked by the following items:
β Checklist
toString
function with documentation, samples and tests.equals
andhashCode
functions) with documentation, samples and tests.KSerializer<PositiveInteger>
type with documentation, samples and tests.