Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
metatype-1.0.6
-
None
Description
If an attribute is not mandatory, the validate() method of its AttributeDefinition will regard an invalid input the same as absent input.
For example, consider an optional integer attribute. For an input "abc", its validate() method returns "". This is a bit unfortunate as it can cause invalid data to be fed into the system.