Skip to content

[C++] Map key value string length message misleading #852

@xamix

Description

@xamix

Hi,

I use the following rules on a map<string, string>:

(validate.rules).map.keys.string.min_len = 1,

And when the rule is not respected, the error message is ending by:

value length must be at least 1 characters

Shouldn't it be:

key length must be at least 1 characters

Besause it is not clear if the key or the value do not respect the rule

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReports and/or fixes a bugC++C++ language support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions