Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ New ZeroAsByteSerializer type #690

Closed
8 tasks done
Tracked by #723
LVMVRQUXL opened this issue Jul 21, 2024 · 0 comments
Closed
8 tasks done
Tracked by #723

✨ New ZeroAsByteSerializer type #690

LVMVRQUXL opened this issue Jul 21, 2024 · 0 comments
Assignees
Labels
common Item related to all platforms. feature New feature or request.
Milestone

Comments

@LVMVRQUXL
Copy link
Contributor

LVMVRQUXL commented Jul 21, 2024

πŸ“ Description

In the types-kotlinx-serialization subproject, we want to introduce the ZeroAsByteSerializer experimental type for serializing the Zero type as Byte. This serializer should be available for all Kotlin platforms.

class ZeroAsByteSerializer : KSerializer<Zero> {
    override val descriptor: SerializerDescriptor

    override fun equals(other: Any?): Boolean
    override fun hashCode(): Int
    override fun serialize(encoder: Encoder, value: Zero)
    override fun deserialize(decoder: Decoder): Zero
    override fun toString(): String
}

Finally, we want to deprecate the KotoolsTypesSerializers.zero experimental property with an error level for using this new serializer instead.

βœ… Checklist

  • ✨ Add the type and its public constructor with tests, documentation and samples.
  • ✨ Override the toString method with tests, documentation and samples.
  • ✨ Override the equals method with tests, documentation and samples.
  • ✨ Override the hashCode method with tests, documentation and samples.
  • ✨ Make the type implementing the KSerializer<Zero> type with tests, documentation and samples.
  • πŸ—‘οΈ Deprecate the KotoolsTypesSerializers.zero property.
  • πŸ“ Update the unreleased changelog for this issue.
  • πŸ“ Create another issue for removing the KotoolsTypesSerializers.zero deprecated property for the next iteration.
@LVMVRQUXL LVMVRQUXL added feature New feature or request. common Item related to all platforms. labels Jul 21, 2024
@LVMVRQUXL LVMVRQUXL added this to the 4.5.2 milestone Jul 21, 2024
@LVMVRQUXL LVMVRQUXL self-assigned this Jul 21, 2024
@LVMVRQUXL LVMVRQUXL removed this from the 4.5.2 milestone Jul 21, 2024
@LVMVRQUXL LVMVRQUXL removed their assignment Jul 21, 2024
@LVMVRQUXL LVMVRQUXL added this to the 4.5.3 milestone Jul 21, 2024
@LVMVRQUXL LVMVRQUXL modified the milestones: 4.5.3, 4.5.4 Jul 22, 2024
@LVMVRQUXL LVMVRQUXL self-assigned this Aug 15, 2024
LVMVRQUXL added a commit that referenced this issue Aug 27, 2024
It is now recommended to use the `ZeroAsByteSerializer` type instead.
LVMVRQUXL added a commit that referenced this issue Aug 27, 2024
It is now recommended to use the `ZeroAsByteSerializer` type instead.
LVMVRQUXL added a commit that referenced this issue Aug 28, 2024
It is now recommended to use the `ZeroAsByteSerializer` type instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Item related to all platforms. feature New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant