rougail-output-doc/tests/docs/base/04_5validators.md

3.8 KiB

Table of Contents

dictionaries/rougail/00-base.yml

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

Variables pour "rougail"

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