Skip to content

Nested @Mapping is ignored for unmapped source report #3839

Description

@Sam-Kruglov

Expected behavior

no error

Actual behavior

source property X is unmapped

Steps to reproduce the problem

try example https://mapstruct.org/documentation/stable/reference/html/#mapping-nested-bean-properties-to-current-target with unmappedSourcePolicy = ReportingPolicy.ERROR,

Also, when I have method with 2 arguments, I specify @Mapping(source = "arg1.field1.nestedField2") but then I only have to do @BeanMapping(ignoreUnmappedSourceProperties = "nestedField2") instead, might be another bug

MapStruct Version

1.6.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions