Skip to content

Commit f2ec3fb

Browse files
JordonPhillipsmtdowling
authored andcommitted
Add test case for duplicated traits
1 parent f76eee0 commit f2ec3fb

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

smithy-model/src/test/resources/software/amazon/smithy/model/loader/valid/inline-io/inline-io.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,29 @@
203203
"smithy.api#documentation": "Here too",
204204
"smithy.api#output": {}
205205
}
206+
},
207+
"com.example#DuplicateTrait": {
208+
"type": "operation",
209+
"input": {
210+
"target": "com.example#DuplicateTraitInput"
211+
},
212+
"output": {
213+
"target": "com.example#DuplicateTraitOutput"
214+
}
215+
},
216+
"com.example#DuplicateTraitInput": {
217+
"type": "structure",
218+
"members": {},
219+
"traits": {
220+
"smithy.api#input": {}
221+
}
222+
},
223+
"com.example#DuplicateTraitOutput": {
224+
"type": "structure",
225+
"members": {},
226+
"traits": {
227+
"smithy.api#output": {}
228+
}
206229
}
207230
}
208231
}

smithy-model/src/test/resources/software/amazon/smithy/model/loader/valid/inline-io/inline-io.smithy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,8 @@ operation HasDocComments {
6767
/// Here too
6868
{}
6969
}
70+
71+
operation DuplicateTrait {
72+
input := @input {}
73+
output := @output {}
74+
}

0 commit comments

Comments
 (0)