You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I explained the reason in the original description. Severities feature does bring extra complexity to the mechanism that should be reasonably simple. If one group of errors is more important than the other, some ways effectively will lead to the same effect:
For complete separate groups: construct specification and validator for each.
For groups with shared points: use error codes. Apply error code to the rules that you consider more important and then, in the result object, check for the error code.
This issue, though, sparked some ideas for the new features:
Merging multiple validation results in one. So the separate groups of rules would end up with a single result. Maybe with the option to assign error code to all the errors coming from a certain group.
Feature description
Feature in action
Feature details
WithSeverity
.The text was updated successfully, but these errors were encountered: