orisai / object-mapper

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

Validate default values #40

Closed mabar closed 1 year ago

mabar commented 1 year ago

During metadata validation, check whether default values are valid according to validation rules

Needs:

Any errors should raise only warning, because things like options context may still break the defaults

mabar commented 1 year ago

Tried to implement and it lead to infinite recursive calls. Cyclical dependencies were fine, passing processor to MetaLoader->load() instead of having processor as a dependency.

But even if I solved recursive calls - it wouldn't work. Rules already transform data and they don't and shouldn't expect already transformed data. Even worst would it be with #14 - default values will be objects and not data from which objects are created.

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.