ConfigMe icon indicating copy to clipboard operation
ConfigMe copied to clipboard

Map to bean but tolerate nulls

Open ljacqu opened this issue 6 months ago • 0 comments

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...

ljacqu avatar Aug 26 '25 18:08 ljacqu