-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix consistent service naming and add test coverage #2349
Changes from 5 commits
9db2cfb
9dcd5e3
23d86e3
da57512
0b003da
8ad1f9a
0c5d3ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 code in a miriad | ||
// of ways. The solution to the linked issue must solve them. | ||
|
||
/// Confounds model generation machinery with lots of problematic casing | ||
@awsJson1_1 | ||
service ACRONYMInside_Service { | ||
operations: [ | ||
DoNothing, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't need this operation if #2351 is merged |
||
// 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, | ||
// } |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ dependencies { | |
val allCodegenTests = "../codegen-core/common-test-models".let { commonModels -> | ||
listOf( | ||
CodegenTest("crate#Config", "naming_test_ops", imports = listOf("$commonModels/naming-obstacle-course-ops.smithy")), | ||
CodegenTest("casing#ACRONYMInside_Service", "naming_test_casing", imports = listOf("$commonModels/naming-obstacle-course-casing.smithy")), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's no harm in adding this to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
CodegenTest( | ||
"naming_obs_structs#NamingObstacleCourseStructs", | ||
"naming_test_structs", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not in love with the naming here :)