-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix consistent service naming and add test coverage (#2349)
* Make service name casing consistent * Add naming-obstacle-course-casing.smithy * Add missing import * Relax obstacle course even further * Better TODO * Add CHANGELOG.next.toml
- Loading branch information
Showing
5 changed files
with
77 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
63 changes: 63 additions & 0 deletions
63
codegen-core/common-test-models/naming-obstacle-course-casing.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,63 @@ | ||
$version: "1.0" | ||
namespace casing | ||
|
||
use aws.protocols#awsJson1_1 | ||
|
||
// TODO(https://github.com/awslabs/smithy-rs/issues/2340): The commented part of the model breaks the generator in a | ||
// miriad of ways. Any solution to the linked issue must address this. | ||
|
||
/// Confounds model generation machinery with lots of problematic casing | ||
@awsJson1_1 | ||
service ACRONYMInside_Service { | ||
operations: [ | ||
DoNothing, | ||
// ACRONYMInside_Op | ||
// ACRONYM_InsideOp | ||
] | ||
} | ||
|
||
operation DoNothing {} | ||
|
||
// operation ACRONYMInside_Op { | ||
// input: Input, | ||
// output: Output, | ||
// errors: [Error], | ||
// } | ||
|
||
// operation ACRONYM_InsideOp { | ||
// input: Input, | ||
// output: Output, | ||
// errors: [Error], | ||
// } | ||
|
||
// structure Input { | ||
// ACRONYMInside_Member: ACRONYMInside_Struct, | ||
// ACRONYM_Inside_Member: ACRONYM_InsideStruct, | ||
// ACRONYM_InsideMember: ACRONYMInsideStruct | ||
// } | ||
|
||
// structure Output { | ||
// ACRONYMInside_Member: ACRONYMInside_Struct, | ||
// ACRONYM_Inside_Member: ACRONYM_InsideStruct, | ||
// ACRONYM_InsideMember: ACRONYMInsideStruct | ||
// } | ||
|
||
// @error("client") | ||
// structure Error { | ||
// ACRONYMInside_Member: ACRONYMInside_Struct, | ||
// ACRONYM_Inside_Member: ACRONYM_InsideStruct, | ||
// ACRONYM_InsideMember: ACRONYMInsideStruct | ||
// } | ||
|
||
// structure ACRONYMInside_Struct { | ||
// ACRONYMInside_Member: ACRONYM_InsideStruct, | ||
// ACRONYM_Inside_Member: Integer, | ||
// } | ||
|
||
// structure ACRONYM_InsideStruct { | ||
// ACRONYMInside_Member: Integer, | ||
// } | ||
|
||
// structure ACRONYMInsideStruct { | ||
// ACRONYMInside_Member: Integer, | ||
// } |
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