Skip to content

Commit ddccb13

Browse files
CopilotMaryGao
andauthored
Upgrade TypeSpec and Azure Tools dependencies to latest versions (#3283)
* Initial plan for issue * Update TypeSpec and Azure Tools dependencies to latest versions Co-authored-by: MaryGao <9943211+MaryGao@users.noreply.github.com> * TypeSpec dependency upgrade complete - linting passes and generation in progress Co-authored-by: MaryGao <9943211+MaryGao@users.noreply.github.com> * All TypeSpec generation completed successfully Co-authored-by: MaryGao <9943211+MaryGao@users.noreply.github.com> * All integration tests pass - TypeSpec dependency upgrade complete Co-authored-by: MaryGao <9943211+MaryGao@users.noreply.github.com> * Remove optional version parameters from versioning test specs as default logic handles them Co-authored-by: MaryGao <9943211+MaryGao@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MaryGao <9943211+MaryGao@users.noreply.github.com>
1 parent 86ed81e commit ddccb13

45 files changed

Lines changed: 426 additions & 527 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.

common/config/rush/pnpm-lock.yaml

Lines changed: 275 additions & 324 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/typespec-test/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
"type": "module",
55
"dependencies": {
66
"@azure-tools/typespec-ts": "workspace:^0.41.0",
7-
"@typespec/openapi": "^1.0.0",
8-
"@azure-tools/typespec-autorest": "^0.56.0",
9-
"@typespec/openapi3": "^1.0.0",
10-
"@azure-tools/typespec-azure-core": "^0.56.0",
11-
"@azure-tools/typespec-client-generator-core": "^0.56.2",
12-
"@azure-tools/typespec-azure-resource-manager": "^0.56.2",
13-
"@azure-tools/typespec-azure-rulesets": "^0.56.1",
14-
"@typespec/compiler": "^1.0.0",
15-
"@typespec/http": "^1.0.1",
16-
"@typespec/rest": "^0.70.0",
17-
"@typespec/versioning": "^0.70.0",
18-
"@typespec/json-schema": "^1.0.0",
7+
"@typespec/openapi": "^1.1.0",
8+
"@azure-tools/typespec-autorest": "^0.57.0",
9+
"@typespec/openapi3": "^1.1.0",
10+
"@azure-tools/typespec-azure-core": "^0.57.0",
11+
"@azure-tools/typespec-client-generator-core": "^0.57.0",
12+
"@azure-tools/typespec-azure-resource-manager": "^0.57.0",
13+
"@azure-tools/typespec-azure-rulesets": "^0.57.0",
14+
"@typespec/compiler": "^1.1.0",
15+
"@typespec/http": "^1.1.0",
16+
"@typespec/rest": "^0.71.0",
17+
"@typespec/versioning": "^0.71.0",
18+
"@typespec/json-schema": "^1.1.0",
1919
"prettier": "^3.1.0"
2020
},
2121
"devDependencies": {

packages/typespec-test/test/anomalyDetector/generated/openapi/v1.1/openapi.json

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,7 @@
615615
"description": "Error message for the current time stamp.",
616616
"items": {
617617
"$ref": "#/definitions/Multivariate.ErrorResponse"
618-
},
619-
"x-ms-identifiers": []
618+
}
620619
}
621620
},
622621
"required": [
@@ -650,8 +649,7 @@
650649
"description": "Interpretation of this anomalous time stamp.",
651650
"items": {
652651
"$ref": "#/definitions/Multivariate.AnomalyInterpretation"
653-
},
654-
"x-ms-identifiers": []
652+
}
655653
}
656654
},
657655
"required": [
@@ -710,8 +708,7 @@
710708
"description": "Variable status.",
711709
"items": {
712710
"$ref": "#/definitions/Multivariate.VariableState"
713-
},
714-
"x-ms-identifiers": []
711+
}
715712
}
716713
}
717714
},
@@ -796,8 +793,7 @@
796793
"items": {
797794
"$ref": "#/definitions/Multivariate.ErrorResponse"
798795
},
799-
"readOnly": true,
800-
"x-ms-identifiers": []
796+
"readOnly": true
801797
},
802798
"diagnosticsInfo": {
803799
"$ref": "#/definitions/Multivariate.DiagnosticsInfo",
@@ -820,8 +816,7 @@
820816
"description": "List of models.",
821817
"items": {
822818
"$ref": "#/definitions/Multivariate.AnomalyDetectionModel"
823-
},
824-
"x-ms-identifiers": []
819+
}
825820
},
826821
"currentCount": {
827822
"type": "integer",
@@ -962,16 +957,14 @@
962957
"description": "Error message when detection fails.",
963958
"items": {
964959
"$ref": "#/definitions/Multivariate.ErrorResponse"
965-
},
966-
"x-ms-identifiers": []
960+
}
967961
},
968962
"variableStates": {
969963
"type": "array",
970964
"description": "Variable status.",
971965
"items": {
972966
"$ref": "#/definitions/Multivariate.VariableState"
973-
},
974-
"x-ms-identifiers": []
967+
}
975968
},
976969
"setupInfo": {
977970
"$ref": "#/definitions/Multivariate.MultivariateBatchDetectionOptions",
@@ -1031,8 +1024,7 @@
10311024
"description": "Detection result for each time stamp.",
10321025
"items": {
10331026
"$ref": "#/definitions/Multivariate.AnomalyState"
1034-
},
1035-
"x-ms-identifiers": []
1027+
}
10361028
}
10371029
},
10381030
"required": [
@@ -1050,8 +1042,7 @@
10501042
"description": "Contains the inference data, including the name, time stamps (ISO 8601), and\nvalues of variables.",
10511043
"items": {
10521044
"$ref": "#/definitions/Multivariate.VariableValues"
1053-
},
1054-
"x-ms-identifiers": []
1045+
}
10551046
},
10561047
"topContributorCount": {
10571048
"type": "integer",
@@ -1073,16 +1064,14 @@
10731064
"description": "Variable status.",
10741065
"items": {
10751066
"$ref": "#/definitions/Multivariate.VariableState"
1076-
},
1077-
"x-ms-identifiers": []
1067+
}
10781068
},
10791069
"results": {
10801070
"type": "array",
10811071
"description": "Anomaly status and information.",
10821072
"items": {
10831073
"$ref": "#/definitions/Multivariate.AnomalyState"
1084-
},
1085-
"x-ms-identifiers": []
1074+
}
10861075
}
10871076
}
10881077
},
@@ -1329,8 +1318,7 @@
13291318
"description": "Time series data points. Points should be sorted by time stamp in ascending\norder to match the change point detection result.",
13301319
"items": {
13311320
"$ref": "#/definitions/Univariate.TimeSeriesPoint"
1332-
},
1333-
"x-ms-identifiers": []
1321+
}
13341322
},
13351323
"granularity": {
13361324
"$ref": "#/definitions/Univariate.TimeGranularity",
@@ -1398,8 +1386,7 @@
13981386
"description": "Time series data points. Points should be sorted by time stamp in ascending\norder to match the anomaly detection result. If the data is not sorted\ncorrectly or there's a duplicated time stamp, the API won't work. In such\na case, an error message is returned.",
13991387
"items": {
14001388
"$ref": "#/definitions/Univariate.TimeSeriesPoint"
1401-
},
1402-
"x-ms-identifiers": []
1389+
}
14031390
},
14041391
"granularity": {
14051392
"$ref": "#/definitions/Univariate.TimeGranularity",

packages/typespec-test/test/authoring/generated/openapi/2022-05-15-preview/openapi.json

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -902,8 +902,7 @@
902902
"description": "An array of details about specific errors that led to this reported error.",
903903
"items": {
904904
"$ref": "#/definitions/Azure.Core.Foundations.Error"
905-
},
906-
"x-ms-identifiers": []
905+
}
907906
},
908907
"innererror": {
909908
"$ref": "#/definitions/Azure.Core.Foundations.InnerError",
@@ -1033,8 +1032,7 @@
10331032
"description": "The warnings that were encountered while executing the job.",
10341033
"items": {
10351034
"$ref": "#/definitions/JobWarning"
1036-
},
1037-
"x-ms-identifiers": []
1035+
}
10381036
},
10391037
"errors": {
10401038
"$ref": "#/definitions/Azure.Core.Foundations.Error",
@@ -1100,8 +1098,7 @@
11001098
"description": "The warnings that were encountered while executing the job.",
11011099
"items": {
11021100
"$ref": "#/definitions/JobWarning"
1103-
},
1104-
"x-ms-identifiers": []
1101+
}
11051102
},
11061103
"errors": {
11071104
"$ref": "#/definitions/Azure.Core.Foundations.Error",
@@ -1162,8 +1159,7 @@
11621159
"description": "The Deployment items on this page",
11631160
"items": {
11641161
"$ref": "#/definitions/Deployment"
1165-
},
1166-
"x-ms-identifiers": []
1162+
}
11671163
},
11681164
"nextLink": {
11691165
"type": "string",
@@ -1184,8 +1180,7 @@
11841180
"description": "The Project items on this page",
11851181
"items": {
11861182
"$ref": "#/definitions/Project"
1187-
},
1188-
"x-ms-identifiers": []
1183+
}
11891184
},
11901185
"nextLink": {
11911186
"type": "string",
@@ -1360,8 +1355,7 @@
13601355
"description": "The SupportedLanguage items on this page",
13611356
"items": {
13621357
"$ref": "#/definitions/SupportedLanguage"
1363-
},
1364-
"x-ms-identifiers": []
1358+
}
13651359
},
13661360
"nextLink": {
13671361
"type": "string",
@@ -1408,8 +1402,7 @@
14081402
"description": "The warnings that were encountered while executing the job.",
14091403
"items": {
14101404
"$ref": "#/definitions/JobWarning"
1411-
},
1412-
"x-ms-identifiers": []
1405+
}
14131406
},
14141407
"errors": {
14151408
"$ref": "#/definitions/Azure.Core.Foundations.Error",
@@ -1478,8 +1471,7 @@
14781471
"description": "The TrainingConfigVersion items on this page",
14791472
"items": {
14801473
"$ref": "#/definitions/TrainingConfigVersion"
1481-
},
1482-
"x-ms-identifiers": []
1474+
}
14831475
},
14841476
"nextLink": {
14851477
"type": "string",

packages/typespec-test/test/confidentialLedger/generated/openapi/2022-05-13/openapi.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@
6969
"type": "array",
7070
"items": {
7171
"$ref": "#/definitions/Collection"
72-
},
73-
"x-ms-identifiers": []
72+
}
7473
}
7574
},
7675
"default": {
@@ -562,8 +561,7 @@
562561
"description": "An array of details about specific errors that led to this reported error.",
563562
"items": {
564563
"$ref": "#/definitions/Azure.Core.Foundations.Error"
565-
},
566-
"x-ms-identifiers": []
564+
}
567565
},
568566
"innererror": {
569567
"$ref": "#/definitions/Azure.Core.Foundations.InnerError",
@@ -749,8 +747,7 @@
749747
"description": "Array of ledger entries.",
750748
"items": {
751749
"$ref": "#/definitions/LedgerEntry"
752-
},
753-
"x-ms-identifiers": []
750+
}
754751
},
755752
"state": {
756753
"$ref": "#/definitions/LedgerQueryState",

packages/typespec-test/test/contoso/generated/openapi/2022-11-01-preview/openapi.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,7 @@
321321
"description": "An array of details about specific errors that led to this reported error.",
322322
"items": {
323323
"$ref": "#/definitions/Azure.Core.Foundations.Error"
324-
},
325-
"x-ms-identifiers": []
324+
}
326325
},
327326
"innererror": {
328327
"$ref": "#/definitions/Azure.Core.Foundations.InnerError",
@@ -446,8 +445,7 @@
446445
"description": "The Widget items on this page",
447446
"items": {
448447
"$ref": "#/definitions/Widget"
449-
},
450-
"x-ms-identifiers": []
448+
}
451449
},
452450
"nextLink": {
453451
"type": "string",

packages/typespec-test/test/openai/generated/openapi/2022-12-01/openapi.json

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@
174174
"description": "An array of details about specific errors that led to this reported error.",
175175
"items": {
176176
"$ref": "#/definitions/Azure.Core.Foundations.Error"
177-
},
178-
"x-ms-identifiers": []
177+
}
179178
},
180179
"innererror": {
181180
"$ref": "#/definitions/Azure.Core.Foundations.InnerError",
@@ -303,8 +302,7 @@
303302
"description": "The collection of completions choices associated with this completions response.\nGenerally, `n` choices are generated per provided prompt with a default value of 1.\nToken limits and other settings may limit the number of choices generated.",
304303
"items": {
305304
"$ref": "#/definitions/ChatChoice"
306-
},
307-
"x-ms-identifiers": []
305+
}
308306
},
309307
"usage": {
310308
"$ref": "#/definitions/CompletionsUsage",
@@ -327,8 +325,7 @@
327325
"description": "The collection of context messages associated with this chat completions request.\nTypical usage begins with a chat message for the System role that provides instructions for\nthe behavior of the assistant, followed by alternating messages between the User and\nAssistant roles.",
328326
"items": {
329327
"$ref": "#/definitions/ChatMessage"
330-
},
331-
"x-ms-identifiers": []
328+
}
332329
},
333330
"max_tokens": {
334331
"type": "integer",
@@ -496,8 +493,7 @@
496493
"description": "The collection of completions choices associated with this completions response.\nGenerally, `n` choices are generated per provided prompt with a default value of 1.\nToken limits and other settings may limit the number of choices generated.",
497494
"items": {
498495
"$ref": "#/definitions/Choice"
499-
},
500-
"x-ms-identifiers": []
496+
}
501497
},
502498
"usage": {
503499
"$ref": "#/definitions/CompletionsUsage",
@@ -573,8 +569,7 @@
573569
"x-nullable": true
574570
}
575571
},
576-
"x-ms-client-name": "topLogprobs",
577-
"x-ms-identifiers": []
572+
"x-ms-client-name": "topLogprobs"
578573
},
579574
"text_offset": {
580575
"type": "array",
@@ -761,8 +756,7 @@
761756
"description": "Embedding values for the prompts submitted in the request.",
762757
"items": {
763758
"$ref": "#/definitions/EmbeddingItem"
764-
},
765-
"x-ms-identifiers": []
759+
}
766760
},
767761
"usage": {
768762
"$ref": "#/definitions/EmbeddingsUsage",

0 commit comments

Comments
 (0)