-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allow use of @JsonFormat(with=JsonFormat.Feature.ACCEPT_CASE_INSENSITIVE_PROPERTIES)
on Class
#1886
Comments
@JsonFormat(with=JsonFormat.Feature.ACCEPT_CASE_INSENSITIVE_PROPERTIES }
on Class@JsonFormat(with=JsonFormat.Feature.ACCEPT_CASE_INSENSITIVE_PROPERTIES)
on Class
It isn't working for me (class or properties). If I create a custom mapper, it works. How can I use this annotation on a property? I am using the last version of Jackson @cowtowncoder |
Issue still exists with version 2.9.0 |
@JavierSegoviaCordoba @giltroymeren I am confused wrt your comments: this is an open issue, not marked as fixed, so how would it not be an issue any more? There is no need to add markers for "still not working". |
Looking into implementing this for 2.12.0, next on my "hopefully simple to do" list. |
@cowtowncoder looking closer at this it looks like you've added support at the class level but not at the property level, is that right? And if so, do you plan to add property level support? |
@macfarla No, I don't think there is support for just one case-insensitive property, and there are no plans to do that. |
Thanks @cowtowncoder I have found another way to do what I need :) |
@macfarla Just in case others have same issue, the |
Ah, yes, And as a sidenote: the reason for no support for single-property case-insensitivity is the technical implementation: lookup for all properties is via data structure that does either strict, or case-insensitive. So there is no way to distinguish this on per-property basis, as of yet. |
is ACCEPT_CASE_INSENSITIVE_PROPERTIES working now for properties? |
@bipul-git It can be applied on individual properties with |
(note: follow-up from #1851)
Currently
@JsonFormat
features, and specificallyFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES
, does not apply if annotated via class. Like:whereas similar setting with
mapper.configOverrides(class)
does work.It would probably make sense to allow annotation on class too, having lower precedence than config override, but higher than general one.
The text was updated successfully, but these errors were encountered: