orisai / object-mapper

Raw data mapping to validated objects
Mozilla Public License 2.0
10 stars 1 forks source link

Make mapped object auto initialization optional #61

Closed mabar closed 1 year ago

mabar commented 1 year ago

@MappedObjectValue(Input::class, tryAutoInit=true)

mabar commented 1 year ago

Related to #45 - auto initialization is currently applied only for root rule and new option would possibly break root detection. Maybe initialization through before callback would work?

mabar commented 1 year ago

Solved by https://github.com/orisai/object-mapper/commit/c3e4e5582c0fc5514185fad8690af17e906bda96

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.