Differents invalid configuration. All of them shall report the error properly Every content shall have an identifier $ tests --configuration < { > "content": [ > { > "key": "", > } > ] > } > EOF in field "content": while decoding a list: element 0: Expected an object with an attribute "id", but got { "key": "" } The content ID cannot be empty: $ tests --configuration < { > "content": [ > { > "id": "", > } > ] > } > EOF in field "content": while decoding a list: element 0: in field "id": Expected a non empty identifier, but got "" The content ID cannot be contains "." (this charater is used internaly): $ tests --configuration < { > "content": [ > { > "id": "foo.bar", > } > ] > } > EOF in field "content": while decoding a list: element 0: in field "id": Expected an identifier with only the accepted characters, but got "foo.bar" A reference shall point to an existing content: $ tests --configuration < { > "content": [ > { > "id": "content", > "section": [ > { > "field": [ > { > "name": "name", > "label": {}, > "type": { > "content": "yes_no" > } > } > ] > } > ] > } > ] > } > EOF Undefined target "yes_no". Expected existing list or content, but got { "content": "yes_no" } Cycles between required content are not accepted $ tests --configuration < { > "content": [ > { > "id": "entity", > "section": [ > { > "field": [ > { > "name": "user_type", > "label": {}, > "required": true, > "type": { > "content": "user", > "multivaluated": true, > } > } > ] > } > ] > }, > { > "id": "user", > "section": [ > { > "field": [ > { > "name": "entity", > "label": {}, > "required": true, > "type": { "content": "entity", } > } > ] > } > ] > } > ] > } Dependency circle found between: entity user Identifiers are validated when the configuration is parsed: characters outside letters, digits and underscore are rejected (a double quote could otherwise break out of the quoted SQL identifiers): $ tests --configuration < { > "content": [ > { > "id": "evil\"; DROP TABLE entity;--" > } > ] > } > EOF in field "content": while decoding a list: element 0: in field "id": Expected an identifier with only the accepted characters, but got "evil\"; DROP TABLE entity;--" Field names are validated the same way: $ tests --configuration < { > "content": [ > { > "id": "entity", > "section": [ > { > "field": [ > { > "name": "bad\"name", > "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": Expected an identifier with only the accepted characters, but got "bad\"name" Reference targets are validated the same way: $ tests --configuration < { > "content": [ > { > "id": "entity", > "section": [ > { > "field": [ > { > "name": "ref", > "label": {}, > "type": { > "content": "bad\"target" > } > } > ] > } > ] > } > ] > } > 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 "type": I tried the following decoders but they all failed: "text" decoder: Expected a string, but got { "content": "bad\"target" } "content" decoder: 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 < { > "list": [ > { > "id": "foo.bar" > } > ], > "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" A reference field in a list can only target another list, not a content: $ tests --configuration < { > "list": [ > { > "id": "user_type_list", > "field": [ > { > "name": "entity", > "label": {}, > "type": { "content": "entity" } > } > ] > } > ], > "content": [ { "id": "entity" } ] > } > EOF in field "list": while decoding a list: element 0: in field "field": while decoding a list: element 0: in field "type": I tried the following decoders but they all failed: "text" decoder: Expected a string, but got { "content": "entity" } "content" decoder: References in a list can only target a list declared before it, but got { "content": "entity" } A list cannot reference itself: $ tests --configuration < { > "list": [ > { > "id": "user_type_list", > "field": [ > { > "name": "parent", > "label": {}, > "type": { "content": "user_type_list" } > } > ] > } > ], > "content": [] > } > EOF in field "list": while decoding a list: element 0: in field "field": while decoding a list: element 0: in field "type": I tried the following decoders but they all failed: "text" decoder: Expected a string, but got { "content": "user_type_list" } "content" decoder: References in a list can only target a list declared before it, but got { "content": "user_type_list" } A list cannot reference a list declared after it: $ tests --configuration < { > "list": [ > { > "id": "first_list", > "field": [ > { > "name": "other", > "label": {}, > "type": { "content": "second_list" } > } > ] > }, > { "id": "second_list" } > ], > "content": [] > } > EOF in field "list": while decoding a list: element 0: in field "field": while decoding a list: element 0: in field "type": I tried the following decoders but they all failed: "text" decoder: Expected a string, but got { "content": "second_list" } "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"