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

Allow validator to support arbitrary types

    XMLWordPrintableJSON

Details

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

    Description

      Currently the Validator.validate method only act on String values.
      Since type conversion is already built into the ValueMap, it would be good to leverage that and to allow Validator to act on arbitrary types there!

      Also the type conversion from ValueMap should be leveraged to do the type check in ValidationServiceImpl.validatePropertyValue rather than implementing a new thing in Type.isValid().

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: