-
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.
Update IDL serializer to write metadata to a separate file to avoid d…
…uplication of data
- Loading branch information
1 parent
449da56
commit bf32a87
Showing
9 changed files
with
90 additions
and
55 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
18 changes: 18 additions & 0 deletions
18
...resources/software/amazon/smithy/model/shapes/idl-serialization/alphabetical/after.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,18 @@ | ||
$version: "2.0" | ||
|
||
namespace com.example | ||
|
||
structure Abc { | ||
bar: String | ||
@length( | ||
min: 1 | ||
) | ||
@required | ||
baz: String | ||
} | ||
|
||
string Def | ||
|
||
service Hij { | ||
version: "2006-03-01" | ||
} |
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
4 changes: 4 additions & 0 deletions
4
...ources/software/amazon/smithy/model/shapes/idl-serialization/alphabetical/metadata.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,4 @@ | ||
$version: "2.0" | ||
|
||
metadata foo = "hi" | ||
metadata zoo = "test" |
3 changes: 3 additions & 0 deletions
3
...e/amazon/smithy/model/shapes/idl-serialization/multiple-namespaces/output/metadata.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,3 @@ | ||
$version: "2.0" | ||
|
||
metadata shared = true |
2 changes: 0 additions & 2 deletions
2
...zon/smithy/model/shapes/idl-serialization/multiple-namespaces/output/ns.primitives.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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
$version: "2.0" | ||
|
||
metadata shared = true | ||
|
||
namespace ns.primitives | ||
|
||
list StringList { | ||
|
2 changes: 0 additions & 2 deletions
2
...zon/smithy/model/shapes/idl-serialization/multiple-namespaces/output/ns.structures.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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
$version: "2.0" | ||
|
||
metadata shared = true | ||
|
||
namespace ns.structures | ||
|
||
use ns.primitives#StringList | ||
|
3 changes: 0 additions & 3 deletions
3
.../test/resources/software/amazon/smithy/model/shapes/idl-serialization/out-of-order.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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
$version: "2.0" | ||
|
||
metadata zoo = "test" | ||
metadata foo = "hi" | ||
|
||
namespace com.example | ||
|
||
string MyString | ||
|