rougail-output-doc/tests/docs/base/04_5validators.md
2024-08-05 14:38:59 +02:00

3.9 KiB

Table of Contents

dictionaries/rougail/00-base.yml

---
version: '1.1'
int:
  description: A number
  type: number
  validators:
    - type: jinja
      jinja: |
        {% if _.int > 100 %}
        value is too high
        {% endif %}        
      description: the max value is 100

Variables for "rougail"

Variable                                                                                                Description                                                                                            
rougail.int
number basic mandatory
A number.
Validator: the max value is 100.

Example with mandatory variables not filled in

---
rougail:
  int: 42

Example with all variables modifiable

---
rougail:
  int: 42