From b05e2d2be7be28ee6c577671002797cf9abaf177 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Fri, 20 Nov 2026 16:23:53 +0100 Subject: New module for working with Values --- lib/configuration/tests/errors.t | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'lib/configuration/tests/errors.t') diff --git a/lib/configuration/tests/errors.t b/lib/configuration/tests/errors.t index b23f237..c4552d3 100644 --- a/lib/configuration/tests/errors.t +++ b/lib/configuration/tests/errors.t @@ -334,3 +334,38 @@ A list cannot reference a list declared after it: "content" decoder: References in a list can only target a list declared before it, but got { "content": "second_list" } + +A field cannot be named "id" (reserved: it is the primary key of every row): + + $ tests --configuration < { + > "content": [ + > { + > "id": "entity", + > "section": [ + > { + > "field": [ + > { + > "name": "id", + > "label": {}, + > "type": "text" + > } + > ] + > } + > ] + > } + > ] + > } + > EOF + in field "content": + while decoding a list: + element 0: + in field "section": + while decoding a list: + element 0: + in field "field": + while decoding a list: + element 0: + in field "name": + the name "id" is reserved: it is the primary key of every row, but got + "id" -- cgit v1.2.3