Open bergmanngabor opened 1 month ago
I agree with the first suggestion about having a default severity of error.
However, I don't believe an empty string as the message is meaningful in any way. E.g. it would result in Eclipse displaying an error marker without any description in the editor and the markers view that is not usable for end-users.
Ok, then how about the default message being "Violation of
We have discussed the options in person and found the following ways to handle the issue:
org.eclipse.viatra.addon.validation.runtime.validation
fragment from the installation would avoid the entire issue.I'd prefer option 2 or 3, but I can live with option 1 if they are inappropriate.
The annotation validator for
@Constraint
should allow most annotation arguments to be skipped. https://github.com/eclipse-viatra/org.eclipse.viatra/blob/master/addon/plugins/org.eclipse.viatra.addon.validation.runtime.validation/src/org/eclipse/viatra/addon/validation/runtime/annotation/ConstraintAnnotationValidator.javaSpecifically,
severity
should default toerror
message
should default to an empty string.