forked from smithy-lang/smithy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit moves model validation and suppressions into the core. EmitEachSelector and EmitNoneSelector are now part of smithy-model and were removed from smithy-linters. The `@suppress` trait was added to suppress validaation events on specific shapes. The `validators` metadata property was updated so that it now only take `id`, `namespace`, and `reason`, where `namespace` can be set to `*` to suppress a validation event for all namespaces or validation events that aren't specific to a single shape. The ability to add custom suppressions to the ModeAssembler has been removed.
- Loading branch information
Showing
35 changed files
with
326 additions
and
579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...main/resources/META-INF/services/software.amazon.smithy.model.validation.ValidatorService
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
...rc/test/resources/software/amazon/smithy/linters/errorfiles/validator-loading-test.errors
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
.../src/test/resources/software/amazon/smithy/linters/errorfiles/validator-loading-test.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.