Merge "Add form validator example to documentation"

This commit is contained in:
Zuul 2018-04-20 00:06:51 +00:00 committed by Gerrit Code Review
commit bfac34bf01
1 changed files with 5 additions and 0 deletions

View File

@ -598,6 +598,11 @@ fields.
label: Availability zone
description: Select an availability zone, where service will be installed.
required: false
validators:
# if unitNamingPattern is given and dcInstances > 1, then '#' should occur in unitNamingPattern
- expr: $.appConfiguration.dcInstances < 2 or not $.appConfiguration.unitNamingPattern.bool()
or '#' in $.appConfiguration.unitNamingPattern
message: Incrementation symbol "#" is required in the Instance Naming Pattern
Control attributes might be initialized with a YAQL expression. However prior
to version 2.4 it only worked for forms other than the first. It was designed