Package software.amazon.smithy.linters
Class MissingSensitiveTraitValidator
java.lang.Object
software.amazon.smithy.model.validation.AbstractValidator
software.amazon.smithy.linters.MissingSensitiveTraitValidator
- All Implemented Interfaces:
Validator
Validates that shapes and members that possibly contain sensitive data are marked with the sensitive trait.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
MissingSensitiveTrait configuration.static final class
-
Field Summary
Fields inherited from interface software.amazon.smithy.model.validation.Validator
MODEL_DEPRECATION, MODEL_ERROR
-
Method Summary
Modifier and TypeMethodDescriptionFinds shapes without the sensitive trait that possibly contain sensitive data, based on the shape/member name and the list of key words and phrases.Methods inherited from class software.amazon.smithy.model.validation.AbstractValidator
createEvent, createEvent, danger, danger, error, error, getName, note, note, warning, warning
-
Method Details
-
validate
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
-