Skip to content

Commit 62a645d

Browse files
authored
Migration smithy initial setup (#3861)
* Extend ShapeUtil/ServiceNameUtil with C2J naming workarounds for model codegen * Fix empty-string bug in getShapeCppName and expand test coverage - Fix CRITICAL bug: getShapeCppName() now properly handles empty-string resolutions from HARDCODED_COLLISION_RESOLUTIONS map - Changed null-only check to check both null and empty string: resolved != null && !resolved.isEmpty() - Empty strings indicate shapes removed from model (e.g., medialive BatchUpdateScheduleResult) - Added test coverage: getHardcodedResolution and getShapeCppName for medialive empty-string case - Added ServiceNameUtil documentation comment explaining serviceMap parameter reserved for future use - Created ServiceNameUtilTest with capitalize tests * Add GlobalTransforms: reserved member renaming and reachability computation * Add ProtocolResolver and CppTypeMapper for Smithy model codegen * Add ShapeClassifier for categorizing Smithy shapes into model file types * Add MemberRenderer for generating C++ Get/Set/With accessors from Smithy members * Add EnumRenderer for generating C++ enum classes from Smithy enum shapes * Add SerdeStub for stubbed serde method generation (to be replaced by schema-based serde) * Add ModelCodegenPlugin and ModelGenerator scaffold for Smithy model sub-object generation * Register ModelCodegenPlugin; validate CBOR service model generation - Register ModelCodegenPlugin in SPI file and build.gradle.kts projections - Fix CppWriter: set 2-space indent, enable trimTrailingSpaces - Fix CppWriterDelegator: add UTF-8 BOM to match C2J output - Fix CppTypeMapper: check enum before string (EnumShape extends StringShape), add default values for enum (NOT_SET), timestamp, and blob types - Fix EnumRenderer: use wire values as C++ constants (not member names), single/multi-line format based on line length - Fix MemberRenderer: non-templated setters for primitives and enums, enum-aware Add methods for lists, doc comment format escaping - Fix ModelGenerator: proper namespace structure, indent class body, class-level doc comments, Input->Request / Output->Result naming, conditional <utility> include - Fix SerdeStub: remove hardcoded indent (handled by writer) - Update EnumRendererTest for new format * enable smithy model generation and disable c2j behind flag * prefer writer.openblock and writer.WriteNamespace * rip out serdestub to be truly stubbed * enum renderer fixes for c2j parity * Remove function that's not used * fast fail codegen, optional returns instead of null * Shapeclassifier "continue" loop -> if/else * Specify java target compat to be 16+ * whitespace/utf-encoding diffs for waiters/paginators * conditionally add model codegen plugin to services
1 parent 532557c commit 62a645d

5,120 files changed

Lines changed: 9405 additions & 5852 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

generated/src/aws-cpp-sdk-AWSMigrationHub/include/aws/AWSMigrationHub/MigrationHubClientPagination.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/**
22
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
* SPDX-License-Identifier: Apache-2.0.
44
*/

generated/src/aws-cpp-sdk-AWSMigrationHub/include/aws/AWSMigrationHub/MigrationHubPaginationBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/**
22
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
* SPDX-License-Identifier: Apache-2.0.
44
*/

generated/src/aws-cpp-sdk-AWSMigrationHub/include/aws/AWSMigrationHub/MigrationHubWaiter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/**
22
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
* SPDX-License-Identifier: Apache-2.0.
44
*/

generated/src/aws-cpp-sdk-AWSMigrationHub/include/aws/AWSMigrationHub/model/ListApplicationStatesPaginationTraits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/**
22
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
* SPDX-License-Identifier: Apache-2.0.
44
*/

generated/src/aws-cpp-sdk-AWSMigrationHub/include/aws/AWSMigrationHub/model/ListCreatedArtifactsPaginationTraits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/**
22
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
* SPDX-License-Identifier: Apache-2.0.
44
*/

generated/src/aws-cpp-sdk-AWSMigrationHub/include/aws/AWSMigrationHub/model/ListDiscoveredResourcesPaginationTraits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/**
22
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
* SPDX-License-Identifier: Apache-2.0.
44
*/

generated/src/aws-cpp-sdk-AWSMigrationHub/include/aws/AWSMigrationHub/model/ListMigrationTaskUpdatesPaginationTraits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/**
22
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
* SPDX-License-Identifier: Apache-2.0.
44
*/

generated/src/aws-cpp-sdk-AWSMigrationHub/include/aws/AWSMigrationHub/model/ListMigrationTasksPaginationTraits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/**
22
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
* SPDX-License-Identifier: Apache-2.0.
44
*/

generated/src/aws-cpp-sdk-AWSMigrationHub/include/aws/AWSMigrationHub/model/ListProgressUpdateStreamsPaginationTraits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/**
22
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
* SPDX-License-Identifier: Apache-2.0.
44
*/

0 commit comments

Comments
 (0)