Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Specificity of Error Messages for Pattern Mismatches #74

Open
inaSteinmetz opened this issue Nov 12, 2024 · 1 comment
Open

Comments

@inaSteinmetz
Copy link

inaSteinmetz commented Nov 12, 2024

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:

  • Error Path
  • Message
  • Level
  • Details
  • Reference Rule

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

@otto-ifak
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants