Class ContextualValidationEventFormatter

java.lang.Object
software.amazon.smithy.model.validation.ContextualValidationEventFormatter
All Implemented Interfaces:
ValidationEventFormatter

public final class ContextualValidationEventFormatter extends Object implements ValidationEventFormatter
This validation event formatter outputs a validation event that points to the source code line that triggered the event.

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 Details

    • ContextualValidationEventFormatter

      public ContextualValidationEventFormatter()
  • Method Details