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

Invalid enum and variable names #21

Open
markok314 opened this issue Mar 6, 2021 · 0 comments
Open

Invalid enum and variable names #21

markok314 opened this issue Mar 6, 2021 · 0 comments

Comments

@markok314
Copy link

When generating Kotlin classes from the following schema:
https://edavki.durs.si/Documents/Schemas/Doh_KDVP_9.xsd

I encountered the following issues:

  1. TypeInventoryEnum.Unknown is used but not generated, which causes syntax error.
  2. This seems to be Jackson related, but can also be 'fixed' here: If variable has name with inverse case, for example kDVP, it is serialized to lowercase XML tag 'kdvp' regardless of property localname='KDVP'. Solution: rename var in generated code to lower case ('kdvp'). Note: It seems that XML tag is serialized as lowercase by Jackson if the first letter of var name is lower case, and the second is upper case. The rest is not important.
  3. @JsonPropertyOrder annotation is missing for sequences of XML elements to preserve element order on

serialization.
4. Property @JacksonXmlProperty(namespace=...) is not generated for elements with namespace.

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

1 participant