BenWoodworth / knbt

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

Consider adding a `@NbtSerialName` annotation #21

Closed BenWoodworth closed 1 year ago

BenWoodworth commented 1 year 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