Package software.amazon.smithy.linters
Class ReservedWordsValidator
java.lang.Object
software.amazon.smithy.model.validation.AbstractValidator
software.amazon.smithy.linters.ReservedWordsValidator
- All Implemented Interfaces:
Validator
Emits validation events for a configuration of reserved words.
This validator accepts the following optional configuration options:
- reserved: ([object]) A list of reserved word configuration
objects as follows:
- words: ([string]) A list of words that are case-insensitively reserved. Leading and trailing wildcards ("*") are supported.
- terms: ([string]) A list of word boundary terms to test.
- selector: (string) Specifies a selector for this configuration. Defaults to validating all shapes, including member names.
- reason: (string) A reason to display for why this set of words is reserved.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
ReservedWords validator configuration.static final class
static final class
A single reserved words configuration. -
Field Summary
Fields inherited from interface software.amazon.smithy.model.validation.Validator
MODEL_DEPRECATION, MODEL_ERROR
-
Method Summary
Modifier and TypeMethodDescriptionValidates a model and returns a list of validation events.Methods inherited from class software.amazon.smithy.model.validation.AbstractValidator
createEvent, createEvent, danger, danger, error, error, getName, note, note, warning, warning
-
Method Details
-
validate
Description copied from interface:Validator
Validates a model and returns a list of validation events.- Parameters:
model
- Model to validate.- Returns:
- List of validation events.
-