forked from smithy-lang/smithy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow transforms to remove enum members
This fixes a bug that was preventing enum members from being removable from transforms, such as removeShapesByTag.
- Loading branch information
1 parent
23a11e5
commit b9d5a49
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