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

XmlSerialName is ignored with objects #65

Open
GitAntoinee opened this issue May 26, 2021 · 2 comments
Open

XmlSerialName is ignored with objects #65

GitAntoinee opened this issue May 26, 2021 · 2 comments

Comments

@GitAntoinee
Copy link

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.

@Dominaezzz
Copy link

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

@pdvrieze
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants