Skip to content

Map to bean but tolerate nulls #484

@ljacqu

Description

@ljacqu

We should have a utility (and realistically, promote it to an alternative BeanProperty) that maps everything it can to a given bean while still accepting nulls. I could imagine Mapper methods alongside the existing ones, something like mapPartial or mapTolerant or something.

Kind of breaks the ConfigMe philosophy of no nulls, but would make debugging easier and also some migrations. Plus I think some people would really want this instead of defensively using Optional and initialized fields everywhere...

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureDifficult architectural questionsbeanmapperIssues that relate to the bean mapper

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions