-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Allow transforms to remove enum members" (#1443)"
This reverts commit e74329a.
1 parent
e74329a
commit 2a17f71
Showing
4 changed files
with
69 additions
and
2 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
21 changes: 21 additions & 0 deletions
21
...hy-build/src/test/resources/software/amazon/smithy/build/transforms/filter-by-tags.smithy
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
$version: "2.0" | ||
|
||
namespace smithy.example | ||
|
||
enum Foo { | ||
@tags(["filter"]) | ||
FILTER | ||
|
||
@tags(["keep"]) | ||
KEEP | ||
} | ||
|
||
intEnum Bar { | ||
@tags(["filter"]) | ||
@enumValue(1) | ||
FILTER | ||
|
||
@tags(["keep"]) | ||
@enumValue(2) | ||
KEEP | ||
} |
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