2021-05-21 11:50:40 +00:00
|
|
|
{
|
|
|
|
"value": "some value",
|
2021-06-01 17:12:00 +00:00
|
|
|
|
2021-05-21 11:50:40 +00:00
|
|
|
"section": {
|
2021-06-01 17:12:00 +00:00
|
|
|
"any": "thing",
|
|
|
|
"sub": {
|
|
|
|
"sub": {
|
|
|
|
"sub1": {
|
|
|
|
"key": "val1"
|
|
|
|
},
|
|
|
|
"sub2": {
|
|
|
|
"key": "val2"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-05-21 11:50:40 +00:00
|
|
|
},
|
2021-06-01 16:45:26 +00:00
|
|
|
|
2021-05-21 11:50:40 +00:00
|
|
|
"string_slice": {
|
|
|
|
"empty": [],
|
|
|
|
"filled": [
|
|
|
|
"string1",
|
|
|
|
"string2"
|
|
|
|
],
|
|
|
|
"incorrect": null
|
2021-05-21 12:50:24 +00:00
|
|
|
},
|
2021-06-01 16:24:44 +00:00
|
|
|
|
2021-05-21 12:50:24 +00:00
|
|
|
"string": {
|
|
|
|
"correct": "some string",
|
|
|
|
"incorrect": []
|
2021-06-01 11:04:00 +00:00
|
|
|
},
|
2021-06-01 16:24:44 +00:00
|
|
|
|
2021-06-01 11:04:00 +00:00
|
|
|
"duration": {
|
|
|
|
"correct": "15m",
|
|
|
|
"incorrect": "some string"
|
2021-06-01 16:45:26 +00:00
|
|
|
},
|
2021-06-01 16:24:44 +00:00
|
|
|
|
2021-06-01 16:45:26 +00:00
|
|
|
"number": {
|
|
|
|
"int_pos": 1,
|
|
|
|
"int_neg": -1,
|
|
|
|
"fract_pos": 2.5,
|
|
|
|
"fract_neg": -2.5,
|
|
|
|
"incorrect": "some string"
|
2021-06-01 16:24:44 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"bool": {
|
|
|
|
"correct": true,
|
|
|
|
"correct_string": "true",
|
|
|
|
"incorrect": "not true"
|
2021-10-07 16:15:48 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"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
|
2021-10-18 13:36:56 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"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
|
|
|
|
}
|
2021-05-21 11:50:40 +00:00
|
|
|
}
|
|
|
|
}
|