Skip to main content

Add Validator

Add a validator to a validation suite.

Syntax

alter validation suite <suite reference> add validator <validator spec>
[with validator pattern """<pattern>"""]
[with field selector pattern """<pattern>"""]

Parameters

suite reference

String — Name of the validation suite to add a validator to, optionally qualified by project.

validator spec

JSON — Definition of the new validator.

pattern

String — A regex pattern to be inserted into the JSON spec for a validator or field selector. Use this syntax with triple quotes to avoid needing to escape characters in your regex patttern.