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

Add namespace property for @JsonProperty (for XML module) #181

Closed
cowtowncoder opened this issue Nov 14, 2020 · 0 comments
Closed

Add namespace property for @JsonProperty (for XML module) #181

cowtowncoder opened this issue Nov 14, 2020 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

cowtowncoder commented Nov 14, 2020

Currently "namespace" aspect for XML module is handled with separate set of XML-specific annotations (which in itself would be fine) but also with variation of AnnotationIntrospector. This leads to problems with handling, including otherwise unnecessary coupling by XML module to JAXB annotations module.

To reduce coupling a bit it would make sense to allow optionally specifying namespace for @JsonProperty annotation -- handling already allows this (at databind level), and default of "" is assumed already.
Note that @JsonRootName already allows specifying namespace this way.

So for 2.12 let's add ability to use Jackson's standard annotations in most cases.

@cowtowncoder cowtowncoder changed the title Add namespace property for @JsonProperty and @JsonRootName (for XML module) Add namespace property for @JsonProperty (for XML module) Nov 15, 2020
@cowtowncoder cowtowncoder added this to the 2.12.0-rc2 milestone Nov 15, 2020
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