public final class ServiceValidator extends AbstractValidator
This validator allows some kinds of conflicts when they are likely inconsequential. Some classes of conflicts are permitted, and in those cases a WARNING or NOTE is emitted. A conflict is permitted if the shapes are the same type; the two shapes are either a simple shape, list, or set; both shapes have the same exact traits; and both shapes have equivalent members (that is, the members follow these same rules). Permitted conflicts detected between simple shapes are emitted as a NOTE, permitted conflicts detected on other shapes are emitted as a WARNING, and other conflicts are emitted as ERROR.
MODEL_ERROR
Constructor and Description |
---|
ServiceValidator() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ValidationEvent> |
validate(Model model)
Validates a model and returns a list of validation events.
|
createEvent, createEvent, danger, danger, error, error, getName, note, note, warning, warning
public java.util.List<ValidationEvent> validate(Model model)
Validator
model
- Model to validate.