Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3756

MetaType AD.validate() regards invalid input as absent input

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • metatype-1.0.6
    • metatype-1.0.8
    • Metatype Service
    • 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.

      Attachments

        Activity

          People

            jajans J.W. Janssen
            jajans J.W. Janssen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: