-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
π Description
Originally commented here.
For simplifying the Application Programming Interface (API) of the types-kotlinx-serialization Gradle subproject, we want to introduce the different serializers for the Zero type as extension functions on the Zero.Companion type.
fun Zero.Companion.byteSerializer(): KSerializer<Zero> = TODO()
fun Zero.Companion.shortSerializer(): KSerializer<Zero> = TODO()
fun Zero.Companion.intSerializer(): KSerializer<Zero> = TODO()
fun Zero.Companion.longSerializer(): KSerializer<Zero> = TODO()
fun Zero.Companion.floatSerializer(): KSerializer<Zero> = TODO()
fun Zero.Companion.doubleSerializer(): KSerializer<Zero> = TODO()
fun Zero.Companion.stringSerializer(): KSerializer<Zero> = TODO()The Kotlin Serialization library being dedicated to Kotlin, these functions must be marked with the JvmSynthetic annotation for hiding it from Java.
Finally, we want to deprecate the ZeroAsByteSerializer experimental type with an error level for using the Zero.Companion.byteSerializer() function instead.
π Dependencies
This issue is blocked by the following items:
β Checklist
See the Issue implementation section in the contributing guidelines before addressing the following checklist.
- β¨ Add the
Zero.Companion.byteSerializer()extension function with tests, documentation and samples. - ποΈ Deprecate the
ZeroAsByteSerializertype. - β¨ Add the
Zero.Companion.shortSerializer()extension function with tests, documentation and samples. - β¨ Add the
Zero.Companion.intSerializer()extension function with tests, documentation and samples. - β¨ Add the
Zero.Companion.longSerializer()extension function with tests, documentation and samples. - β¨ Add the
Zero.Companion.floatSerializer()extension function with tests, documentation and samples. - β¨ Add the
Zero.Companion.doubleSerializer()extension function with tests, documentation and samples. - β¨ Add the
Zero.Companion.stringSerializer()extension function with tests, documentation and samples. - β Update tests of these new serializers.
- β»οΈ Refactor string serializers.
- π Update the unreleased changelog for this issue.
- π After closing this issue, update the status of tracking issues depending on this one.