rougail-output-doc/tests/docs/base/04_5validators_multi.adoc

37 lines
681 B
Text
Raw Normal View History

== dictionaries/rougail/00-base.yml
[,yaml]
----
---
version: 1.1
var1:
description: a second variable
multi: true
default:
- no
- yes
validators:
- jinja: |
{% if _.var1 | length > 9 %}
length must be less than 10
{% endif %}
description: check length is less than 10
----
2024-11-15 08:13:45 +01:00
== Variables for "Rougail"
[cols="1a,1a"]
|====
2024-11-15 08:13:45 +01:00
| Variable | Description
|
2024-11-15 08:13:45 +01:00
**rougail.var1** +
2024-11-15 08:13:45 +01:00
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[string]` `standard` `mandatory` `unique` `multiple` |
A second variable. +
**Validator**: check length is less than 10. +
**Default**:
* no
2024-11-15 08:13:45 +01:00
* yes
|====