47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
== dictionaries/rougail/00-base.yml
|
|
|
|
[,yaml]
|
|
----
|
|
version: 1.1
|
|
var1:
|
|
description: a second variable
|
|
multi: true
|
|
default:
|
|
- no
|
|
- yes
|
|
test:
|
|
- val1
|
|
- val2
|
|
validators:
|
|
- params:
|
|
values:
|
|
variable: _.var1
|
|
whole: true
|
|
jinja: |
|
|
{% if values | length > 2 %}
|
|
length must be less than 3
|
|
{% endif %}
|
|
description: check length is less than 3
|
|
----
|
|
== Variables
|
|
|
|
[cols="128a,128a",options="header"]
|
|
|====
|
|
| Variable | Description
|
|
|
|
|
**var1** +
|
|
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
|
|
A second variable. +
|
|
**Validator**: check length is less than 3. +
|
|
**Default**:
|
|
|
|
* no
|
|
* yes
|
|
|
|
**Examples**:
|
|
|
|
* val1
|
|
* val2
|
|
|====
|
|
|
|
|