Skip to content

Commit

Permalink
Merge pull request Azure#420 from Azure/daschult/casing
Browse files Browse the repository at this point in the history
Add case-insensitive checks for MethodGroupTS model sorting
  • Loading branch information
Dan Schulte authored Jan 4, 2019
2 parents c61e70c + fea29f4 commit 772477d
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft.azure/autorest.typescript",
"version": "2.3.1",
"version": "2.3.2",
"description": "The typescript extension for classic generators in AutoRest.",
"scripts": {
"autorest": "autorest",
Expand Down Expand Up @@ -94,4 +94,4 @@
"dependencies": {
"dotnet-2.0.0": "^1.4.4"
}
}
}
2 changes: 1 addition & 1 deletion src/vanilla/Model/MethodGroupTS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public string GenerateMappers()
{
exportedValues.Add("discriminators");
}
exportedValues.AddRange(OperationModelNames.OrderBy(mapperName => mapperName));
exportedValues.AddRange(OperationModelNames.OrderBy(mapperName => mapperName.ToLowerInvariant()));
builder.Line(string.Join(",\n", exportedValues));
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export {
discriminators,
BooleanWrapper,
ByteWrapper,
DateWrapper,
DatetimeWrapper,
Datetimerfc1123Wrapper,
DatetimeWrapper,
DateWrapper,
DoubleWrapper,
DurationWrapper,
ErrorModel,
Expand Down
2 changes: 1 addition & 1 deletion test/azure/generated/AzureSpecials/models/headerMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

export {
ErrorModel,
HeaderCustomNamedRequestIdHeadHeaders,
HeaderCustomNamedRequestIdHeaders,
HeaderCustomNamedRequestIdHeadHeaders,
HeaderCustomNamedRequestIdParamGroupingHeaders
} from "../models/mappers";
8 changes: 4 additions & 4 deletions test/azure/generated/Lro/models/lROsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ export {
LROsDelete202Retry200Headers,
LROsDeleteAsyncNoHeaderInRetryHeaders,
LROsDeleteAsyncNoRetrySucceededHeaders,
LROsDeleteAsyncRetrycanceledHeaders,
LROsDeleteAsyncRetryFailedHeaders,
LROsDeleteAsyncRetrySucceededHeaders,
LROsDeleteAsyncRetrycanceledHeaders,
LROsDeleteNoHeaderInRetryHeaders,
LROsDeleteProvisioning202Accepted200SucceededHeaders,
LROsDeleteProvisioning202DeletingFailed200Headers,
LROsDeleteProvisioning202Deletingcanceled200Headers,
LROsDeleteProvisioning202DeletingFailed200Headers,
LROsPost202NoRetry204Headers,
LROsPost202Retry200Headers,
LROsPostAsyncNoRetrySucceededHeaders,
LROsPostAsyncRetrycanceledHeaders,
LROsPostAsyncRetryFailedHeaders,
LROsPostAsyncRetrySucceededHeaders,
LROsPostAsyncRetrycanceledHeaders,
LROsPutAsyncNoHeaderInRetryHeaders,
LROsPutAsyncNoRetrySucceededHeaders,
LROsPutAsyncNoRetrycanceledHeaders,
LROsPutAsyncNoRetrySucceededHeaders,
LROsPutAsyncRetryFailedHeaders,
LROsPutAsyncRetrySucceededHeaders,
LROsPutNoHeaderInRetryHeaders,
Expand Down
8 changes: 4 additions & 4 deletions test/azuremetadata/generated/Lro/lib/models/lROsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ export {
LROsDelete202Retry200Headers,
LROsDeleteAsyncNoHeaderInRetryHeaders,
LROsDeleteAsyncNoRetrySucceededHeaders,
LROsDeleteAsyncRetrycanceledHeaders,
LROsDeleteAsyncRetryFailedHeaders,
LROsDeleteAsyncRetrySucceededHeaders,
LROsDeleteAsyncRetrycanceledHeaders,
LROsDeleteNoHeaderInRetryHeaders,
LROsDeleteProvisioning202Accepted200SucceededHeaders,
LROsDeleteProvisioning202DeletingFailed200Headers,
LROsDeleteProvisioning202Deletingcanceled200Headers,
LROsDeleteProvisioning202DeletingFailed200Headers,
LROsPost202NoRetry204Headers,
LROsPost202Retry200Headers,
LROsPostAsyncNoRetrySucceededHeaders,
LROsPostAsyncRetrycanceledHeaders,
LROsPostAsyncRetryFailedHeaders,
LROsPostAsyncRetrySucceededHeaders,
LROsPostAsyncRetrycanceledHeaders,
LROsPutAsyncNoHeaderInRetryHeaders,
LROsPutAsyncNoRetrySucceededHeaders,
LROsPutAsyncNoRetrycanceledHeaders,
LROsPutAsyncNoRetrySucceededHeaders,
LROsPutAsyncRetryFailedHeaders,
LROsPutAsyncRetrySucceededHeaders,
LROsPutNoHeaderInRetryHeaders,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export {
discriminators,
BooleanWrapper,
ByteWrapper,
DateWrapper,
DatetimeWrapper,
Datetimerfc1123Wrapper,
DatetimeWrapper,
DateWrapper,
DoubleWrapper,
DurationWrapper,
ErrorModel,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export {
discriminators,
BooleanWrapper,
ByteWrapper,
DateWrapper,
DatetimeWrapper,
Datetimerfc1123Wrapper,
DatetimeWrapper,
DateWrapper,
DoubleWrapper,
DurationWrapper,
ErrorModel,
Expand Down
4 changes: 2 additions & 2 deletions test/vanilla/generated/BodyComplex/models/primitiveMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export {
discriminators,
BooleanWrapper,
ByteWrapper,
DateWrapper,
DatetimeWrapper,
Datetimerfc1123Wrapper,
DatetimeWrapper,
DateWrapper,
DoubleWrapper,
DurationWrapper,
ErrorModel,
Expand Down

0 comments on commit 772477d

Please sign in to comment.