forked from TrueCloudLab/frostfs-node
cb9bf00ceb
In case we have multiple sections with similar structure (e.g. shards) having defaults in a single place is easier to work with. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
65 lines
851 B
YAML
65 lines
851 B
YAML
value: some value
|
|
|
|
section:
|
|
any: thing
|
|
|
|
sub:
|
|
sub:
|
|
sub1:
|
|
key: val1
|
|
|
|
sub2:
|
|
key: val2
|
|
|
|
string_slice:
|
|
empty: []
|
|
|
|
filled:
|
|
- string1
|
|
- string2
|
|
|
|
incorrect:
|
|
|
|
string:
|
|
correct: some string
|
|
|
|
incorrect: []
|
|
|
|
duration:
|
|
correct: 15m
|
|
incorrect: some string
|
|
|
|
number:
|
|
int_pos: 1
|
|
int_neg: -1
|
|
fract_pos: 2.5
|
|
fract_neg: -2.5
|
|
incorrect: some string
|
|
|
|
bool:
|
|
correct: true
|
|
correct_string: "true"
|
|
incorrect: not true
|
|
|
|
sizes:
|
|
size_kb: 1 kb
|
|
size_kb_no_space: 2kb
|
|
size_mb: 12m
|
|
size_gb: 4g
|
|
size_tb: 5 TB
|
|
size_bytes: 2048b
|
|
size_bytes_no_suffix: 123456
|
|
|
|
with_default:
|
|
default:
|
|
sub:
|
|
missing: 123
|
|
overridden: "x"
|
|
missing: 42
|
|
overridden: "a"
|
|
overridden_with_default: true
|
|
custom:
|
|
sub:
|
|
overridden: "y"
|
|
overridden: "b"
|
|
overridden_with_default: false
|