Skip to content

Commit

Permalink
update tcgc version to 0.48.4 (#5193)
Browse files Browse the repository at this point in the history
* update tcgc version to latest

* bump MGC version

* add the usage to csharp code

* regen

* update version

* bump to official version
  • Loading branch information
ArcturusZhang authored Dec 11, 2024
1 parent 3d34a86 commit 0f4f9fe
Show file tree
Hide file tree
Showing 18 changed files with 637 additions and 638 deletions.
20 changes: 9 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@azure-tools/cadl-ranch-specs": "0.39.2",
"@azure-tools/typespec-client-generator-core": "0.48.1",
"@azure-tools/typespec-client-generator-core": "0.48.4",
"@azure-tools/typespec-azure-resource-manager": "0.48.0",
"@azure-tools/typespec-csharp": "file:src/TypeSpec.Extension/Emitter.Csharp",
"@azure-tools/unbranded-tests": "file:test/UnbrandedProjects",
Expand Down
6 changes: 3 additions & 3 deletions samples/AnomalyDetector/tspCodeModel.json
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@
],
"isFixed": true,
"isFlags": false,
"usage": "Output,Json",
"usage": "Json,Exception",
"decorators": []
},
{
Expand Down Expand Up @@ -1017,7 +1017,7 @@
"kind": "model",
"name": "ErrorResponse",
"crossLanguageDefinitionId": "AnomalyDetector.Multivariate.ErrorResponse",
"usage": "Output,Error,Json",
"usage": "Output,Error,Json,Exception",
"description": "ErrorResponse contains code and message that shows the error information.",
"decorators": [],
"properties": [
Expand Down Expand Up @@ -2959,7 +2959,7 @@
"kind": "model",
"name": "AnomalyDetectorError",
"crossLanguageDefinitionId": "AnomalyDetector.Univariate.AnomalyDetectorError",
"usage": "Output,Error,Json",
"usage": "Error,Json,Exception",
"description": "Error information returned by the API.",
"decorators": [],
"properties": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ internal enum InputModelTypeUsage
Spread = 1 << 6,
Error = 1 << 7,
Json = 1 << 8,
Xml = 1 << 9
Xml = 1 << 9,
Exception = 1 << 10,
}
4 changes: 2 additions & 2 deletions src/TypeSpec.Extension/Emitter.Csharp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
],
"dependencies": {
"@autorest/csharp": "3.0.0-beta.20240625.4",
"@typespec/http-client-csharp": "0.1.9-alpha.20241201.2"
"@typespec/http-client-csharp": "0.1.9-alpha.20241210.2"
},
"peerDependencies": {
"@azure-tools/typespec-azure-core": ">=0.48.0 <1.0.0",
Expand All @@ -52,7 +52,7 @@
},
"devDependencies": {
"@azure-tools/typespec-azure-core": "0.48.0",
"@azure-tools/typespec-client-generator-core": "0.48.1",
"@azure-tools/typespec-client-generator-core": "0.48.4",
"@azure-tools/typespec-azure-resource-manager": "0.48.0",
"@azure-tools/typespec-azure-rulesets": "0.48.0",
"@azure-tools/typespec-autorest": "0.48.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"kind": "model",
"name": "InvalidAuth",
"crossLanguageDefinitionId": "Authentication.ApiKey.InvalidAuth",
"usage": "Output,Error,Json",
"usage": "Error,Json,Exception",
"decorators": [],
"properties": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"kind": "model",
"name": "InvalidAuth",
"crossLanguageDefinitionId": "Authentication.Http.Custom.InvalidAuth",
"usage": "Output,Error,Json",
"usage": "Error,Json,Exception",
"decorators": [],
"properties": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"kind": "model",
"name": "InvalidAuth",
"crossLanguageDefinitionId": "Authentication.OAuth2.InvalidAuth",
"usage": "Output,Error,Json",
"usage": "Error,Json,Exception",
"decorators": [],
"properties": [
{
Expand Down
4 changes: 2 additions & 2 deletions test/CadlRanchProjects/azure/core/lro/rpc/tspCodeModel.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
"kind": "model",
"name": "Error",
"crossLanguageDefinitionId": "Azure.Core.Foundations.Error",
"usage": "Output,Json",
"usage": "Output,Json,Exception",
"description": "The error object.",
"decorators": [],
"properties": [
Expand Down Expand Up @@ -371,7 +371,7 @@
"kind": "model",
"name": "InnerError",
"crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError",
"usage": "Output,Json",
"usage": "Output,Json,Exception",
"description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.",
"decorators": [],
"properties": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@
"kind": "model",
"name": "Error",
"crossLanguageDefinitionId": "Azure.Core.Foundations.Error",
"usage": "Output,Json",
"usage": "Output,Json,Exception",
"description": "The error object.",
"decorators": [],
"properties": [
Expand Down Expand Up @@ -411,7 +411,7 @@
"kind": "model",
"name": "InnerError",
"crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError",
"usage": "Output,Json",
"usage": "Output,Json,Exception",
"description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.",
"decorators": [],
"properties": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@
"kind": "model",
"name": "ErrorResponse",
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorResponse",
"usage": "Output,Error,Json",
"usage": "Error,Json,Exception",
"description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.",
"decorators": [],
"properties": [
Expand All @@ -792,7 +792,7 @@
"kind": "model",
"name": "ErrorDetail",
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorDetail",
"usage": "Output,Json",
"usage": "Json,Exception",
"description": "The error detail.",
"decorators": [],
"properties": [
Expand Down Expand Up @@ -894,7 +894,7 @@
"kind": "model",
"name": "ErrorAdditionalInfo",
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
"usage": "Output,Json",
"usage": "Json,Exception",
"description": "The resource management error additional info.",
"decorators": [],
"properties": [
Expand Down Expand Up @@ -929,7 +929,7 @@
"kind": "model",
"name": "ErrorAdditionalInfoInfo",
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo.info.anonymous",
"usage": "Output,Json",
"usage": "Json,Exception",
"decorators": [],
"properties": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@
"kind": "model",
"name": "ErrorResponse",
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorResponse",
"usage": "Output,Error,Json",
"usage": "Error,Json,Exception",
"description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.",
"decorators": [],
"properties": [
Expand All @@ -674,7 +674,7 @@
"kind": "model",
"name": "ErrorDetail",
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorDetail",
"usage": "Output,Json",
"usage": "Json,Exception",
"description": "The error detail.",
"decorators": [],
"properties": [
Expand Down Expand Up @@ -776,7 +776,7 @@
"kind": "model",
"name": "ErrorAdditionalInfo",
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
"usage": "Output,Json",
"usage": "Json,Exception",
"description": "The resource management error additional info.",
"decorators": [],
"properties": [
Expand Down Expand Up @@ -811,7 +811,7 @@
"kind": "model",
"name": "ErrorAdditionalInfoInfo",
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo.info.anonymous",
"usage": "Output,Json",
"usage": "Json,Exception",
"decorators": [],
"properties": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"kind": "model",
"name": "InvalidAuth",
"crossLanguageDefinitionId": "Authentication.ApiKey.InvalidAuth",
"usage": "Output,Error,Json",
"usage": "Error,Json,Exception",
"decorators": [],
"properties": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"kind": "model",
"name": "InvalidAuth",
"crossLanguageDefinitionId": "Authentication.Http.Custom.InvalidAuth",
"usage": "Output,Error,Json",
"usage": "Error,Json,Exception",
"decorators": [],
"properties": [
{
Expand Down
Loading

0 comments on commit 0f4f9fe

Please sign in to comment.