Skip to content

Change the hasRequiredMarker implementation to the 3.x specification #941

@k163377

Description

@k163377

The hasRequiredMarker is currently implemented in the KotlinAnnotationIntrospector so that the old required flag does not override the kotlin-module process.
On the other hand, this will override processing by other AnnotationIntrospectors, and therefore will also override the user's own specifications.

In 3.x, the old required flag will be ignored if it is false, so that the kotlin-module process is not overridden.
Therefore, hasRequiredMarker will be moved to KotlinNamesAnnotationIntrospector to avoid overriding user specifications as much as possible.
During this, considerations for JsonProperty annotations in the current implementation will also be removed as they are no longer needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.xIssue affecting/planned for Jackson 3.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions