Skip to content

Report Non-existing target properties as errors #178

@CodeSimcoe

Description

@CodeSimcoe

When a @Mapping(target = x) is defined where x does not effectively exist, an error shall be reported.
Example of code that does should raise an error :

@Mapper
public interface JediMapper {

  @Mapping(target = "wrongField", ignore = true)
  JediDto toDto(Jedi jedi);

  @Mapping(target = "master", ignore = true)
  Jedi fromDto(JediDto jedi);
}

PR proposed : #177

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