orisai / object-mapper

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

CreateWithoutConstructor must be defined above all classes #54

Closed mabar closed 1 year ago

mabar commented 1 year ago

If parent object supports to be created without object mapper, child should not break this promise. Opposite applies as well. One object in hierarchy cannot request valdiation dependencies in constructor while other expects already valid values.

If any class, interface or trait defines __construct() and uses CreateWithoutConstructor:

mabar commented 1 year ago

Replaced by #65 as a superior solution

Attributes repeatability and overriding has to be solved independently for all cases

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.