rougail-output-doc/tests/results/test_examples/24_7validators_variable_optional.md

29 lines
4.9 KiB
Markdown
Raw Normal View History

2024-07-10 21:27:48 +02:00
---
gitea: none
include_toc: true
---
## a family
`basic`
| Variable                                                                                                   | Description                                                                                                |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
2024-12-02 20:21:31 +01:00
| **general.int**<br/>[`number`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `basic` `mandatory` | A first number.<br/>**Validators**: <br/>- int and int2 must be different.<br/>- int and int3 must be different.<br/>**Example**: 5 |
| **general.int2**<br/>[`number`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `standard` `mandatory` | A second number.<br/>**Default**: 1 |
# Example with mandatory variables not filled in
```yaml
---
general:
int: 5
```
# Example with all variables modifiable
2024-07-10 21:27:48 +02:00
2024-12-02 20:21:31 +01:00
```yaml
---
general:
int: 5
int2: 1
```