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

Create a validation tool #259

Open
adrienlauer opened this issue Mar 20, 2019 · 0 comments
Open

Create a validation tool #259

adrienlauer opened this issue Mar 20, 2019 · 0 comments
Assignees

Comments

@adrienlauer
Copy link
Member

adrienlauer commented Mar 20, 2019

A validation tool should be created. Validation would be based on a ValidationProvider interface like this:

@Facet
public interface ValidationProvider {
    Set<Violation> validate();
}
  • This interface can be implemented by plugins that provide validation behavior.
  • All plugins implementing this interface should be collected by the validation tool and activated.
  • Then the validate() method of each plugin would return the set of violations encoutered.

The Violation interface could be like:

public interface Violation {
    ViolationCode getViolationCode();
    Map<String, Object> getProperties();
}

A merge of ErrorCode and ViolationCode should be considered if useful.

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

No branches or pull requests

2 participants