Skip to content

Allow use of @JsonFormat(with=JsonFormat.Feature.ACCEPT_CASE_INSENSITIVE_PROPERTIES) on Class #1886

@cowtowncoder

Description

@cowtowncoder

(note: follow-up from #1851)

Currently @JsonFormat features, and specifically Feature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, does not apply if annotated via class. Like:

    @JsonFormat(with={ JsonFormat.Feature.ACCEPT_CASE_INSENSITIVE_PROPERTIES })
    static class Role {
        public String ID;
        public String Name;
    }

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions