Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5026

Allow to set multiple validation error messages in one Validator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Validation 1.0.0
    • Validation 1.0.0
    • Validation
    • None

    Description

      Currently each Validator can only set one error message through the String return value (SLING-4010). It should be possible for one Validator.validate call to set multiple validation messages at once.
      Maybe the solution radu.cotescu proposed in https://issues.apache.org/jira/browse/SLING-4027?focusedCommentId=14219170&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14219170 can be used here to just pass the ValidationResult around.

      Attachments

        Activity

          People

            kwin Konrad Windszus
            kwin Konrad Windszus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: