admin-shell-io / aas-test-engines

Official test tooling for the Asset Administration Shell
https://certification.admin-shell-io.com
Apache License 2.0
9 stars 4 forks source link

Improve Specificity of Error Messages for Pattern Mismatches #74

Open inaSteinmetz opened 2 weeks ago

inaSteinmetz commented 2 weeks ago

In version 0.6.0, error messages for attributes that did not match patterns were more specific. For example, for idShorts, the system provided a message like "longer than 18 characters.". However, in version 1.0.0, the messages have been simplified to "does not match pattern."

To improve problem-solving, I recommend enhancing the error messages by including specific details, either within the message or as a separate field. Additionally, providing a reference to the rule causing the error would be beneficial.

Proposed Error Message Structure:

This improvement would greatly facilitate problem solving and understanding of issues.

otto-ifak commented 1 week ago

Thanks for your suggestions @inaSteinmetz . We partially addressed this issue by improving the error messages for strings. For the remaining, we first need to discuss how to implement it.