Class MissingSensitiveTraitValidator

java.lang.Object
software.amazon.smithy.model.validation.AbstractValidator
software.amazon.smithy.linters.MissingSensitiveTraitValidator
All Implemented Interfaces:
Validator

public final class MissingSensitiveTraitValidator extends AbstractValidator

Validates that shapes and members that possibly contain sensitive data are marked with the sensitive trait.

  • Method Details

    • validate

      public List<ValidationEvent> validate(Model model)
      Finds shapes without the sensitive trait that possibly contain sensitive data, based on the shape/member name and the list of key words and phrases.
      Parameters:
      model - Model to validate.
      Returns:
      list of violation events