Interface WhitelistRule
public interface WhitelistRule
A rule for matching validation messages. Matched errors are whitelisted (ignored) and don't fail validation.
-
Method Summary
Modifier and TypeMethodDescriptiondefault WhitelistRuleand(WhitelistRule rule) Creates a new rule that matches only if this and that matches.booleanmatches(ValidationReport.Message message, ApiOperation operation, Request request, Response response) default WhitelistRulenot()Negates the result of this rule.default WhitelistRuleor(WhitelistRule rule) Creates a new rule that matches if this or that matches.
-
Method Details
-
matches
boolean matches(ValidationReport.Message message, @Nullable ApiOperation operation, @Nullable Request request, @Nullable Response response) -
and
Creates a new rule that matches only if this and that matches. -
or
Creates a new rule that matches if this or that matches. -
not
Negates the result of this rule.
-