Uploaded image for project: 'ZZZ-WSO2 Data Services Server'
  1. ZZZ-WSO2 Data Services Server
  2. DS-1151

Enable Custom Validators To Be Initialized with a Set of Properties

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 3.5.0
    • Fix Version/s: 3.5.1-Beta, 3.5.1
    • Component/s: None
    • Labels:
      None
    • Severity:
      Major
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      At the moment, custom validators cannot be given any properties from the UI / data service configuration for it to be initialized, for example, where the standard validators are given properties for their rules, such as limits, patterns etc..

      To retain backward compatibility, a new interface like "ValidatorExt" can be created which extends "Validator", and adds a new method "init(Map<String, String> props)", which will give in the properties related to the custom validator.

        Attachments

          Activity

            People

            • Assignee:
              anupama@wso2.com Anupama Pathirage
              Reporter:
              anjana@wso2.com Anjana Fernando
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: