diff options
Diffstat (limited to 'lib/configuration/tests/errors.t')
| -rw-r--r-- | lib/configuration/tests/errors.t | 35 |
1 files changed, 35 insertions, 0 deletions
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 <<EOF + > { + > "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" |
