Page MenuHomePhabricator

Add support for value constraint tags to the build-command-templates script
Closed, ResolvedPublic


constraint tags are the equivalent of syntax:expression: in the old style templates.

Constraint can be a regex or a call to an external validator, possible with an argument. Validators are stored in ${vyos_libexecdir}/validators

The new syntax:

  <constraintErrorMessage>Foo should be "bar", "baz", or a number within 0-9000 range</constraintErrorMessage>
    <validator name="numeric" argument="--range 0-9000"/>


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
dmbaturin created this object with visibility "Public (No Login Required)".
dmbaturin closed this task as Resolved.Sep 16 2017, 6:25 PM