xmlutil icon indicating copy to clipboard operation
xmlutil copied to clipboard

XmlSerialName is ignored with objects

Open GitAntoinee opened this issue 4 years ago • 2 comments

Hello,

I have an object

// (The prefix is empty because it mustn't have any prefix even its parent prefix)
@XmlSerialName("A", "http://tempuri.org/", "")
@Serializable
object ARequest

And XmlSerialName is ignored

But if it is a class with no members (class ARequest with the same annotations) it is working.

GitAntoinee avatar May 26 '21 12:05 GitAntoinee

kotlinx.serialization doesn't support annotations on objects yet, but it's coming soon.

Dominaezzz avatar May 29 '21 12:05 Dominaezzz

I will leave this open until supported by the plugin. In the meantime you should be able to use an annotation at use site.

pdvrieze avatar May 30 '21 14:05 pdvrieze