Skip to content

Commit 8e9dcbf

Browse files
authored
Add missing default error responses (#12477)
1 parent c704031 commit 8e9dcbf

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2020-04-01-preview/keyvault.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,12 @@
443443
"schema": {
444444
"$ref": "#/definitions/VaultListResult"
445445
}
446+
},
447+
"default": {
448+
"description": "Error response describing why the operation failed.",
449+
"schema": {
450+
"$ref": "common.json#/definitions/CloudError"
451+
}
446452
}
447453
},
448454
"x-ms-pageable": {
@@ -489,6 +495,12 @@
489495
"schema": {
490496
"$ref": "#/definitions/VaultListResult"
491497
}
498+
},
499+
"default": {
500+
"description": "Error response describing why the operation failed.",
501+
"schema": {
502+
"$ref": "common.json#/definitions/CloudError"
503+
}
492504
}
493505
},
494506
"x-ms-pageable": {
@@ -528,6 +540,12 @@
528540
"schema": {
529541
"$ref": "#/definitions/DeletedVaultListResult"
530542
}
543+
},
544+
"default": {
545+
"description": "Error response describing why the operation failed.",
546+
"schema": {
547+
"$ref": "common.json#/definitions/CloudError"
548+
}
531549
}
532550
},
533551
"x-ms-pageable": {
@@ -718,6 +736,12 @@
718736
"schema": {
719737
"$ref": "#/definitions/ResourceListResult"
720738
}
739+
},
740+
"default": {
741+
"description": "Error response describing why the operation failed.",
742+
"schema": {
743+
"$ref": "common.json#/definitions/CloudError"
744+
}
721745
}
722746
},
723747
"x-ms-pageable": {
@@ -763,6 +787,12 @@
763787
"schema": {
764788
"$ref": "#/definitions/CheckNameAvailabilityResult"
765789
}
790+
},
791+
"default": {
792+
"description": "Error response describing why the operation failed.",
793+
"schema": {
794+
"$ref": "common.json#/definitions/CloudError"
795+
}
766796
}
767797
},
768798
"x-ms-examples": {

specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2020-04-01-preview/providers.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
"schema": {
3535
"$ref": "#/definitions/OperationListResult"
3636
}
37+
},
38+
"default": {
39+
"description": "Error response describing why the operation failed.",
40+
"schema": {
41+
"$ref": "common.json#/definitions/CloudError"
42+
}
3743
}
3844
},
3945
"x-ms-pageable": {

0 commit comments

Comments
 (0)