Package software.amazon.smithy.linters
Class MissingPaginatedTraitValidator
java.lang.Object
software.amazon.smithy.model.validation.AbstractValidator
software.amazon.smithy.linters.MissingPaginatedTraitValidator
- All Implemented Interfaces:
Validator
Checks if an operation should be paginated but is not.
- Skip operations that are paginated
- Emit if an operation verb matches one of the
verbsRequirePagination
values - Emit if an operation input member name matches one of the
inputMembersRequirePagination
values - Emit if an operation output member name matches one of the
outputMembersRequirePagination
values - Skip if the operation has no output
- Emit if the operation verb matches one of the
verbsSuggestPagination
and there's a top-level output member that targets a list.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
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.
-