Skip to content

Commit fafee86

Browse files
MaryGaov-jiaodikazrael2119
authored
Normalization refinement including enum member name (#2839)
* Normalize enum key name * Update the enum name * Merge to the latest main * Update the enum key after merging to main * Update the api view * Update the UT cases * Revert un-necessary autorest changes * Refresh the integration testing for cadl-ranch * Update smoke testings * Update smoke testings * Remove useless codes * Push un-necessary changes * Refactor useless codes * fix ci RLC generation * Fix the failure cases * regen smoke * update unit test * Fix the autorest issue * fix rlc generation * Add test cases * Fix the ci issues * Update the main branch * Fix the host name issue * Update the ignoreEnumMemberNameNormalize feature * Update the package.json library name * Update the smoke test * Format rlc-common types * Fix lint issue * Update the test cases * Fix the issue in autorest typescript repo * Update the load test smoke * Update the spec * Fix the name issue in restore poller * regen smoke test * Update the modular integration * Update the integration test * Fix the modular UTs * Update the test cases * Update the UTs * Update the test cases * Resolve conflicts * Update UTs * fix ci * Improve the normalization algo for number and upper cases * Revert the change and update the codegen * Update the format * Revert the breaking changes * Revert un-necessary changes * Update the integration for rlc and modular * Update the lint issues * Update the autorest smoke testing * Push rename file changes * Update the file name changes * Update the normalize style * Update the smoek test * fix ci * update * update * update * update dpgName * update dpgName * Update the autorest cases in HLC * Update the int test * fix ci * Improve with number for prefix and suffix * fix ci * fix modular ut test * update modular ut case * fix ci * Update the logic only working for non interface like type * Update the enum list * Update the enum list * Update the test cases * fix ci * fix ci * merge to the latest main * update tsp * Fix the duplicated template name issues * Update the test cases in smoke testing * Revert the fix and split it into a new repo * Update a dictionary to improve splitting words * Revert word list changes * Revert the test cases * Update the smoke test * fix ci * Update modelsGenerator.spec.ts This reverts commit a8f8757. * fix ci * Fix the failed UTs * Update enumUnion.md * Update index.d.ts * Merge to the latest main * Merge to the latest main * Update the autorest cases * Update the all test cases * Revert change in operation renamings * Add the option to allow ignore-enum-member-name-normalize * Refresh the UTs and integration and smoke testings * Revert change in RLC swagger * Revert the change in launch.json * Update the useless changes * Rename file to lower case one * Rename file to lower case one * Update the version tolerance codes * Revert change in codes * Update the file name to lower cases * Remove wrongly added files * Remove wrongly added files * Remove duplicated test cases * Update packages/typespec-ts/test/unit/uriTemplate.spec.ts * Update packages/typespec-ts/test/unit/uriTemplate.spec.ts * Update the smoke test and integration and normalize operation name also * Update the test cases for method name norm * Update the test cases for shouldn't report enum member diagnostic because of no generation * Fix the smoke testing * Resolve comments * Merge to the latest main and resolve conflicts --------- Co-authored-by: Jiao Di (MSFT) <80496810+v-jiaodi@users.noreply.github.com> Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
1 parent 83c4544 commit fafee86

116 files changed

Lines changed: 1666 additions & 1243 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.

packages/autorest.typescript/test/rlcIntegration/generated/dpgCustomization/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"prefix": "package-version"
3737
},
3838
{
39-
"path": "src/dPGCustomizationClient.ts",
39+
"path": "src/dpgCustomizationClient.ts",
4040
"prefix": "userAgentInfo"
4141
}
4242
]

packages/autorest.typescript/test/rlcIntegration/generated/dpgCustomization/src/dPGCustomizationClient.ts renamed to packages/autorest.typescript/test/rlcIntegration/generated/dpgCustomization/src/dpgCustomizationClient.ts

File renamed without changes.

packages/autorest.typescript/test/rlcIntegration/generated/dpgCustomization/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
import DPGCustomizationClient from "./dPGCustomizationClient";
4+
import DPGCustomizationClient from "./dpgCustomizationClient";
55

6-
export * from "./dPGCustomizationClient";
6+
export * from "./dpgCustomizationClient";
77
export * from "./parameters";
88
export * from "./responses";
99
export * from "./clientDefinitions";

packages/autorest.typescript/test/rlcIntegration/generated/lroRest/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
import LRORestClient from "./lRORestClient";
4+
import LRORestClient from "./lroRestClient";
55

6-
export * from "./lRORestClient";
6+
export * from "./lroRestClient";
77
export * from "./parameters";
88
export * from "./responses";
99
export * from "./clientDefinitions";

packages/autorest.typescript/test/rlcIntegration/generated/lroRest/src/lRORestClient.ts renamed to packages/autorest.typescript/test/rlcIntegration/generated/lroRest/src/lroRestClient.ts

File renamed without changes.

packages/autorest.typescript/test/version-tolerance/generated/rlc-initial/src/dPGClient.ts renamed to packages/autorest.typescript/test/version-tolerance/generated/rlc-initial/src/dpgClient.ts

File renamed without changes.

packages/autorest.typescript/test/version-tolerance/generated/rlc-initial/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
import DPGClient from "./dPGClient";
4+
import DPGClient from "./dpgClient";
55

6-
export * from "./dPGClient";
6+
export * from "./dpgClient";
77
export * from "./parameters";
88
export * from "./responses";
99
export * from "./clientDefinitions";

packages/autorest.typescript/test/version-tolerance/generated/rlc-updated/src/dPGClient.ts renamed to packages/autorest.typescript/test/version-tolerance/generated/rlc-updated/src/dpgClient.ts

File renamed without changes.

packages/autorest.typescript/test/version-tolerance/generated/rlc-updated/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
import DPGClient from "./dPGClient";
4+
import DPGClient from "./dpgClient";
55

6-
export * from "./dPGClient";
6+
export * from "./dpgClient";
77
export * from "./parameters";
88
export * from "./responses";
99
export * from "./clientDefinitions";

packages/rlc-common/src/helpers/nameConstructors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function getResponseBaseName(
5757
return normalizeName(
5858
`${operationGroup}_${normalizeName(
5959
operationName,
60-
NameType.Operation,
60+
NameType.Interface,
6161
true
6262
)}_${statusCode}`,
6363
NameType.Interface

0 commit comments

Comments
 (0)