public final class ContextualValidationEventFormatter extends java.lang.Object implements ValidationEventFormatter
If the event does not have a source location, then this formatter will not attempt to load the contents of the model.
This formatter outputs messages similar to the following text:
ERROR: aws.protocols.tests.ec2#IgnoresWrappingXmlName (Model)
--> /foo/bar.smithy
|
403 | apply MyShape @httpResponseTests([
| ^
= Unable to resolve trait `smithy.test#httpResponseTests`. If this is a custom trait, [...]
Constructor and Description |
---|
ContextualValidationEventFormatter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(ValidationEvent event)
Converts the event to a string.
|
public java.lang.String format(ValidationEvent event)
ValidationEventFormatter
format
in interface ValidationEventFormatter
event
- Event to write as a string.