Skip to content

[3654] Adding validators

Created by: chenejac

VIVO GitHub issue

What does this pull request do?

A brief description of what the intended result of the PR will be and/or what problem it solves.

What's new?

Added validators: NumericRangeValidator (min value and max value defined) RegularExpressionValidator StringLengthRangeValidator (min length and max length defined)

How should this be tested?

The loading of NumericRangeValidator has been only tested. When ParameterTypes for String is merged to the branch, the example will be extended to test loading of RegularExpressionValidator and StringLengthRangeValidator. Once when #3623 the issue is resolved, the isValid method of those validator will be tested.

Additional Notes:

  • Does this change require documentation to be updated? Yes, it should be documented at the end how validators should be used

Interested parties

Tag (@ mention) interested parties or, if unsure, @VIVO-project/vivo-committers

Merge request reports