Skip to content

[ 2374935 ] Naming convention violation (4) #358

@HolQue

Description

@HolQue

I would prefer to have the following error message shortened a bit:

'Invalid key name: "param!1". Key names must not contain these special characters "!#$%^&()=[]{{}}|;\',?~" and have to start with a letter, digit or underscore.`

It is dangerous and also long winded to list all things that are not allowed (and this increases the length of the error message in an unfavorable way). It's better to point out what is allowed.

Alternative:

'Invalid key name: "param!1". Key names are limited to letters, digits and the following characters: _ + - * /

No need to mention also this:

... and have to start with a letter, digit or underscore

Because for such kind of errors already another error message is available:

"!param1" : "value"

Result:
Invalid key name: "!param1". Key names have to start with a letter, digit or underscore

Summarized: The error message should handle only the actual error scenario but should not repeat the entire naming convention.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions