-
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.
Add missing node mapper for document types
- Loading branch information
Showing
9 changed files
with
74 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
16 changes: 16 additions & 0 deletions
16
...rc/it/resources/software/amazon/smithy/traitcodegen/test/lists/document-list-trait.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,16 @@ | ||
$version: "2.0" | ||
|
||
namespace test.smithy.traitcodegen | ||
|
||
use test.smithy.traitcodegen.lists#DocumentListTrait | ||
|
||
|
||
@DocumentListTrait([ | ||
{ a : "a"}, | ||
{ | ||
b : "b" | ||
c : "c" | ||
} | ||
]) | ||
structure myStruct { | ||
} |
15 changes: 15 additions & 0 deletions
15
...sources/software/amazon/smithy/traitcodegen/test/maps/string-to-document-map-trait.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,15 @@ | ||
$version: "2.0" | ||
|
||
namespace test.smithy.traitcodegen | ||
|
||
use test.smithy.traitcodegen.maps#StringDocumentMap | ||
|
||
@StringDocumentMap( | ||
a: { a : "a" } | ||
b: { | ||
b : "b" | ||
c : "c" | ||
} | ||
) | ||
structure myStruct { | ||
} |
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
8 changes: 8 additions & 0 deletions
8
smithy-trait-codegen/src/test/resources/META-INF/smithy/lists/document-list-trait.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,8 @@ | ||
$version: "2.0" | ||
|
||
namespace test.smithy.traitcodegen.lists | ||
|
||
@trait | ||
list DocumentListTrait { | ||
member: Document | ||
} |
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
9 changes: 9 additions & 0 deletions
9
...trait-codegen/src/test/resources/META-INF/smithy/maps/string-to-document-map-trait.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,9 @@ | ||
$version: "2.0" | ||
|
||
namespace test.smithy.traitcodegen.maps | ||
|
||
@trait | ||
map StringDocumentMap { | ||
key: String | ||
value: Document | ||
} |