-
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.
Fix Upgrade1to2Command for Set shape
- Loading branch information
1 parent
d2f9c0f
commit 8b39977
Showing
4 changed files
with
90 additions
and
1 deletion.
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
27 changes: 27 additions & 0 deletions
27
...y-cli/src/test/resources/software/amazon/smithy/cli/commands/upgrade/cases/list.v1.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,27 @@ | ||
$version: "1.0" | ||
|
||
namespace com.example | ||
|
||
integer NonBoxedInteger | ||
|
||
list SparseList { | ||
@box | ||
member: NonBoxedInteger, | ||
} | ||
|
||
set SparseSet { | ||
@box | ||
member: NonBoxedInteger, | ||
} | ||
|
||
list SingleLineList { member: NonBoxedInteger, } | ||
|
||
set SingleLineSet { member: NonBoxedInteger } | ||
|
||
set SetWithIndentation { member: NonBoxedInteger } | ||
|
||
set SetWithComment { // This comment is here | ||
member: NonBoxedInteger, | ||
} | ||
|
||
@tags(["set"]) set MultipleSetCharacters { member: NonBoxedInteger, } |
31 changes: 31 additions & 0 deletions
31
...y-cli/src/test/resources/software/amazon/smithy/cli/commands/upgrade/cases/list.v2.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,31 @@ | ||
$version: "2.0" | ||
|
||
namespace com.example | ||
|
||
@default(0) | ||
integer NonBoxedInteger | ||
|
||
list SparseList { | ||
member: NonBoxedInteger, | ||
} | ||
|
||
@uniqueItems | ||
list SparseSet { | ||
member: NonBoxedInteger, | ||
} | ||
|
||
list SingleLineList { member: NonBoxedInteger, } | ||
|
||
@uniqueItems | ||
list SingleLineSet { member: NonBoxedInteger } | ||
|
||
@uniqueItems | ||
list SetWithIndentation { member: NonBoxedInteger } | ||
|
||
@uniqueItems | ||
list SetWithComment { // This comment is here | ||
member: NonBoxedInteger, | ||
} | ||
|
||
@tags(["set"]) @uniqueItems | ||
list MultipleSetCharacters { member: NonBoxedInteger, } |