question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make namespace optional for @XmlSerialName

See original GitHub issue

In a code like this:

    @XmlSerialName("first", "", "")
    override var first: GDMLRef<GDMLSolid>,

regular @SerialName annotation does not work for some reason (it uses GDMLRef as tag name instead of first), so I have to use @XMLSerialName, but writing empty strings each time is annoying. I think that additional arguments could be made optional.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
pdvriezecommented, Sep 6, 2021

This feature somewhat works. There seems to be an incremental compilation/caching issue (or something like that), but the library supports it now (when the compiler plugin cooperates).

0reactions
pdvriezecommented, Jun 1, 2021

Default arguments should now be supported in kotlin master/1.5.30-pre (see https://github.com/JetBrains/kotlin/commit/229085f3d13b09f87bc5421ec4e3f4272a78fabc ). When that is released I will revisit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Can I make XmlSerializer ignore the namespace on ...
Yes, you can tell the XmlSerializer to ignore namespaces during de-serialization. Define an XmlTextReader that ignores namespaces. Like so:
Read more >
How to have optional attributes with xml - MSDN
I would like to have something like [OptionalField] and [OnDeserialization] ( available in C# ), but they don't seems to be provided in...
Read more >
Specifying Namespaces for Elements and Attributes
XML elements and attributes can belong to different namespaces, and the XML Schema specification provides for multiple ... These attributes are optional.
Read more >
Support for deserializing XML with namespace prefixes #63
Hello, I'm currently trying to use Jackson XML to serialize and deserialize XML with namespace prefixes - for example: x y I'm able...
Read more >
xmlutil XML Serialization library for Kotlin ... - codeKK
Ideally integration with a well-developed native library as an option would be ... It will also make a best effort attempt at retaining...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found