Skip to content

Commit bc7591f

Browse files
authored
Merge pull request Azure#6 from Kevin-Zhong19/pr-36687
check missing
2 parents 383030f + 97335c7 commit bc7591f

5 files changed

Lines changed: 15 additions & 9 deletions

File tree

specification/web/Web.Management/BackupItem.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ interface BackupItems {
101101
*/
102102
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
103103
@operationId("WebApps_Restore")
104-
restore is BackupItemOps.ActionAsync<BackupItem, RestoreRequest, OkResponse>;
104+
restore is BackupItemOps.ActionAsync<BackupItem, RestoreRequest, OkResponse, OverrideErrorType = DefaultErrorResponse>;
105105
}
106106
@armResourceOperations
107107
interface BackupItemOperationGroupOps

specification/web/Web.Management/DiagnosticCategory.tsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ interface DiagnosticCategories {
5454
*/
5555
#suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations"
5656
@operationId("Diagnostics_GetSiteDiagnosticCategory")
57-
getSiteDiagnosticCategory is DiagnosticCategoryOps.Read<DiagnosticCategory>;
57+
getSiteDiagnosticCategory is DiagnosticCategoryOps.Read<DiagnosticCategory, OverrideErrorType = DefaultErrorResponse>;
5858

5959
/**
6060
* Description for Get Diagnostics Categories
@@ -64,7 +64,7 @@ interface DiagnosticCategories {
6464
listSiteDiagnosticCategories is DiagnosticCategoryOps.List<
6565
DiagnosticCategory,
6666
Response = ArmResponse<DiagnosticCategoryCollection>,
67-
67+
OverrideErrorType = DefaultErrorResponse
6868
>;
6969
}
7070
@armResourceOperations

specification/web/Web.Management/FunctionEnvelope.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ interface FunctionEnvelopes {
222222
FunctionEnvelope,
223223
void,
224224
ArmResponse<FunctionSecrets>,
225-
225+
OverrideErrorType = DefaultErrorResponse
226226
>;
227227
}
228228
@armResourceOperations

specification/web/Web.Management/Site.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1900,7 +1900,7 @@ interface WebApps {
19001900
createOrUpdateHostSecretSlot(
19011901
...HostSecretSlotParameters,
19021902
@body body: KeyInfo,
1903-
): ArmResponse<KeyInfo> | ArmResourceCreatedSyncResponse<KeyInfo>;
1903+
): ArmResponse<KeyInfo> | ArmResourceCreatedSyncResponse<KeyInfo> | DefaultErrorResponse;
19041904

19051905
/**
19061906
* Description for Delete a host level secret.

specification/web/resource-manager/Microsoft.Web/stable/2024-11-01/openapi.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8104,7 +8104,7 @@
81048104
"default": {
81058105
"description": "An unexpected error response.",
81068106
"schema": {
8107-
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
8107+
"$ref": "#/definitions/DefaultErrorResponse"
81088108
}
81098109
}
81108110
},
@@ -11140,7 +11140,7 @@
1114011140
"default": {
1114111141
"description": "An unexpected error response.",
1114211142
"schema": {
11143-
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
11143+
"$ref": "#/definitions/DefaultErrorResponse"
1114411144
}
1114511145
}
1114611146
},
@@ -11199,7 +11199,7 @@
1119911199
"default": {
1120011200
"description": "An unexpected error response.",
1120111201
"schema": {
11202-
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
11202+
"$ref": "#/definitions/DefaultErrorResponse"
1120311203
}
1120411204
}
1120511205
},
@@ -12585,7 +12585,7 @@
1258512585
"default": {
1258612586
"description": "An unexpected error response.",
1258712587
"schema": {
12588-
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
12588+
"$ref": "#/definitions/DefaultErrorResponse"
1258912589
}
1259012590
}
1259112591
}
@@ -25182,6 +25182,12 @@
2518225182
"schema": {
2518325183
"$ref": "#/definitions/KeyInfo"
2518425184
}
25185+
},
25186+
"default": {
25187+
"description": "An unexpected error response.",
25188+
"schema": {
25189+
"$ref": "#/definitions/DefaultErrorResponse"
25190+
}
2518525191
}
2518625192
}
2518725193
},

0 commit comments

Comments
 (0)