BenWoodworth / knbt

Kotlin NBT library for kotlinx.serialization
GNU Lesser General Public License v3.0
79 stars 3 forks source link

Consider adding a `@NbtSerialName` annotation #21

Closed BenWoodworth closed 1 year ago

BenWoodworth commented 2 years ago

Would have the same functionality as @SerialName, but takes precedence when serializing NBT

see: https://github.com/Kotlin/kotlinx.serialization/issues/2104

Naming considerations:

(I checked all officially/community supported formats for related @SerialInfo annotation classes)

BenWoodworth commented 1 year ago

Superseded by #29

Opting to add a separate annotation to encompass the serialized root tag name behavior, removing the need for empty @SerialNames