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
public final class MissingSensitiveTraitValidator extends AbstractValidator
Validates that shapes and members that possibly contain sensitive data are marked with the sensitive trait.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MissingSensitiveTraitValidator.Config
MissingSensitiveTrait configuration.static class
MissingSensitiveTraitValidator.Provider
-
Field Summary
-
Fields inherited from interface software.amazon.smithy.model.validation.Validator
MODEL_DEPRECATION, MODEL_ERROR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.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.-
Methods inherited from class software.amazon.smithy.model.validation.AbstractValidator
createEvent, createEvent, createEvent, createEvent, danger, danger, danger, danger, danger, danger, danger, danger, error, error, error, error, error, error, error, error, getName, note, note, note, note, note, note, note, note, warning, warning, warning, warning, warning, warning, warning, warning
-
-
-
-
Method Detail
-
validate
public java.util.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
-
-