geoffreywiseman/Moo

Mark Property as Optional

geoffreywiseman opened this issue · 0 comments

Although properties are required by default and can be marked as @ignore, ignored properties will not ever be used. There are scenarios were you might want the property to be populated if available, but not to have any errors if the property is not available -- particularly where you might be translating a hierarchy of object into a single superset.

An @Optional annotation like the @Ignore annotation would address this.