OpenAPI: Fix alerting DeleteMuteTiming errors (#91109)

The `GenericPublicError` is not what is actually returned by the API. Using `PublicError` describes the API correctly
This commit is contained in:
Julien Duchesne
2024-08-26 10:04:36 -04:00
committed by GitHub
parent 0075abe383
commit 087df1d8e5
8 changed files with 66 additions and 116 deletions
+12 -20
View File
@@ -3086,9 +3086,9 @@
}
},
"409": {
"description": "GenericPublicError",
"description": "PublicError",
"schema": {
"$ref": "#/definitions/GenericPublicError"
"$ref": "#/definitions/PublicError"
}
}
}
@@ -3125,9 +3125,9 @@
"description": " The mute timing was deleted successfully."
},
"409": {
"description": "GenericPublicError",
"description": "PublicError",
"schema": {
"$ref": "#/definitions/GenericPublicError"
"$ref": "#/definitions/PublicError"
}
}
}
@@ -3343,9 +3343,9 @@
}
},
"404": {
"description": "GenericPublicError",
"description": "PublicError",
"schema": {
"$ref": "#/definitions/GenericPublicError"
"$ref": "#/definitions/PublicError"
}
}
}
@@ -3389,15 +3389,15 @@
}
},
"400": {
"description": "GenericPublicError",
"description": "PublicError",
"schema": {
"$ref": "#/definitions/GenericPublicError"
"$ref": "#/definitions/PublicError"
}
},
"409": {
"description": "GenericPublicError",
"description": "PublicError",
"schema": {
"$ref": "#/definitions/GenericPublicError"
"$ref": "#/definitions/PublicError"
}
}
}
@@ -3429,9 +3429,9 @@
"description": " The template was deleted successfully."
},
"409": {
"description": "GenericPublicError",
"description": "PublicError",
"schema": {
"$ref": "#/definitions/GenericPublicError"
"$ref": "#/definitions/PublicError"
}
}
}
@@ -4947,14 +4947,6 @@
"$ref": "#/definitions/Frame"
}
},
"GenericPublicError": {
"type": "object",
"properties": {
"body": {
"$ref": "#/definitions/PublicError"
}
}
},
"GettableAlertmanagers": {
"type": "object",
"properties": {