-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter out synthetic traits before turning those into LoadOperations (#…
…1358) Synthetic traits should not be parsed again. That will cause a failure, for instance, if we import a 1.0 model that has @enum traits. If we try to reparse them this will fail with an error Unable to resolve trait `smithy.synthetic#enum`
- Loading branch information
Showing
3 changed files
with
37 additions
and
5 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
7 changes: 7 additions & 0 deletions
7
...t/resources/software/amazon/smithy/model/loader/does-not-reparses-synthetic-traits.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,7 @@ | ||
$version: "2.0" | ||
|
||
namespace smithy.example | ||
|
||
enum Foo { | ||
HI | ||
} |