diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-11-19 09:57:49 +0100 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-11-19 09:57:49 +0100 |
| commit | e1bf7686f408b52a870d4ed4f3c565dbbcc3954f (patch) | |
| tree | ee7e156032cc0c43ca10879051e64c3dfeab1515 /lib/configuration/tests/errors.t | |
| parent | a9628fda0fc027c54b5ed5313a0c41731d79e41f (diff) | |
Management of lists in the settings
Diffstat (limited to 'lib/configuration/tests/errors.t')
| -rw-r--r-- | lib/configuration/tests/errors.t | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/configuration/tests/errors.t b/lib/configuration/tests/errors.t index bad5b3b..99ad465 100644 --- a/lib/configuration/tests/errors.t +++ b/lib/configuration/tests/errors.t @@ -215,3 +215,23 @@ Reference targets are validated the same way: in field "content": Expected an identifier with only the accepted characters, but got "bad\"target" + +A list ID follows the same rules as a content ID: + + $ tests --configuration <<EOF + > { + > "list": [ + > { + > "id": "foo.bar", + > "source": "csv" + > } + > ], + > "content": [] + > } + > EOF + in field "list": + while decoding a list: + element 0: + in field "id": + Expected an identifier with only the accepted characters, but got + "foo.bar" |
