-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
255 additions
and
7 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
24 changes: 24 additions & 0 deletions
24
.../resources/software/amazon/smithy/typescript/codegen/test-list-with-sensitive-data.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,24 @@ | ||
namespace smithy.example | ||
|
||
@protocols([{name: "aws.rest-json-1.1"}]) | ||
service Example { | ||
version: "1.0.0", | ||
operations: [GetFoo] | ||
} | ||
|
||
operation GetFoo(GetFooInput) | ||
|
||
structure GetFooInput { | ||
foo: UserList | ||
} | ||
|
||
list UserList { | ||
member: User | ||
} | ||
|
||
structure User { | ||
username: String, | ||
|
||
@sensitive | ||
password: String | ||
} |
25 changes: 25 additions & 0 deletions
25
...t/resources/software/amazon/smithy/typescript/codegen/test-map-with-sensitive-data.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,25 @@ | ||
namespace smithy.example | ||
|
||
@protocols([{name: "aws.rest-json-1.1"}]) | ||
service Example { | ||
version: "1.0.0", | ||
operations: [GetFoo] | ||
} | ||
|
||
operation GetFoo(GetFooInput) | ||
|
||
structure GetFooInput { | ||
foo: UserMap | ||
} | ||
|
||
map UserMap { | ||
key: String, | ||
value: User | ||
} | ||
|
||
structure User { | ||
username: String, | ||
|
||
@sensitive | ||
password: String | ||
} |
25 changes: 25 additions & 0 deletions
25
...n/src/test/resources/software/amazon/smithy/typescript/codegen/test-sensitive-list.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,25 @@ | ||
namespace smithy.example | ||
|
||
@protocols([{name: "aws.rest-json-1.1"}]) | ||
service Example { | ||
version: "1.0.0", | ||
operations: [GetFoo] | ||
} | ||
|
||
operation GetFoo(GetFooInput) | ||
|
||
structure GetFooInput { | ||
@sensitive | ||
foo: UserList | ||
} | ||
|
||
list UserList { | ||
member: User | ||
} | ||
|
||
structure User { | ||
username: String, | ||
|
||
@sensitive | ||
password: String | ||
} |
26 changes: 26 additions & 0 deletions
26
...en/src/test/resources/software/amazon/smithy/typescript/codegen/test-sensitive-map.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,26 @@ | ||
namespace smithy.example | ||
|
||
@protocols([{name: "aws.rest-json-1.1"}]) | ||
service Example { | ||
version: "1.0.0", | ||
operations: [GetFoo] | ||
} | ||
|
||
operation GetFoo(GetFooInput) | ||
|
||
structure GetFooInput { | ||
@sensitive | ||
foo: UserMap | ||
} | ||
|
||
map UserMap { | ||
key: String, | ||
value: User | ||
} | ||
|
||
structure User { | ||
username: String, | ||
|
||
@sensitive | ||
password: String | ||
} |
16 changes: 16 additions & 0 deletions
16
...st/resources/software/amazon/smithy/typescript/codegen/test-sensitive-simple-shape.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 @@ | ||
namespace smithy.example | ||
|
||
@protocols([{name: "aws.rest-json-1.1"}]) | ||
service Example { | ||
version: "1.0.0", | ||
operations: [GetFoo] | ||
} | ||
|
||
operation GetFoo(GetFooInput) | ||
|
||
structure GetFooInput { | ||
username: String, | ||
|
||
@sensitive | ||
password: String | ||
} |
21 changes: 21 additions & 0 deletions
21
.../test/resources/software/amazon/smithy/typescript/codegen/test-sensitive-structure.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 @@ | ||
namespace smithy.example | ||
|
||
@protocols([{name: "aws.rest-json-1.1"}]) | ||
service Example { | ||
version: "1.0.0", | ||
operations: [GetFoo] | ||
} | ||
|
||
operation GetFoo(GetFooInput) | ||
|
||
structure GetFooInput { | ||
@sensitive | ||
foo: User | ||
} | ||
|
||
structure User { | ||
username: String, | ||
|
||
@sensitive | ||
password: String | ||
} |
20 changes: 20 additions & 0 deletions
20
...urces/software/amazon/smithy/typescript/codegen/test-structure-with-sensitive-data.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,20 @@ | ||
namespace smithy.example | ||
|
||
@protocols([{name: "aws.rest-json-1.1"}]) | ||
service Example { | ||
version: "1.0.0", | ||
operations: [GetFoo] | ||
} | ||
|
||
operation GetFoo(GetFooInput) | ||
|
||
structure GetFooInput { | ||
foo: User | ||
} | ||
|
||
structure User { | ||
username: String, | ||
|
||
@sensitive | ||
password: String | ||
} |