Skip to content

Commit

Permalink
Add test case for duplicated traits
Browse files Browse the repository at this point in the history
  • Loading branch information
JordonPhillips authored and mtdowling committed Dec 9, 2021
1 parent f76eee0 commit f2ec3fb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,29 @@
"smithy.api#documentation": "Here too",
"smithy.api#output": {}
}
},
"com.example#DuplicateTrait": {
"type": "operation",
"input": {
"target": "com.example#DuplicateTraitInput"
},
"output": {
"target": "com.example#DuplicateTraitOutput"
}
},
"com.example#DuplicateTraitInput": {
"type": "structure",
"members": {},
"traits": {
"smithy.api#input": {}
}
},
"com.example#DuplicateTraitOutput": {
"type": "structure",
"members": {},
"traits": {
"smithy.api#output": {}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,8 @@ operation HasDocComments {
/// Here too
{}
}

operation DuplicateTrait {
input := @input {}
output := @output {}
}

0 comments on commit f2ec3fb

Please sign in to comment.