docs(api): mark keepTraffic optional on the client delete endpoints

Both delete routes read keepTraffic with c.Query and treat a missing
value as "drop the traffic row", but the registry listed it without
optional, so the OpenAPI document and every client generated from it
required the parameter.
This commit is contained in:
Sanaei
2026-11-25 17:16:25 +03:30
parent e95d17a7db
commit 2450e64258
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -10121,7 +10121,7 @@
{
"name": "keepTraffic",
"in": "query",
"required": true,
"required": false,
"description": "Pass 1 to retain the xray_client_traffic row after deletion.",
"schema": {
"type": "integer"
@@ -10176,7 +10176,7 @@
{
"name": "keepTraffic",
"in": "query",
"required": true,
"required": false,
"description": "Pass 1 to retain the xray_client_traffic row after deletion.",
"schema": {
"type": "integer"
+2 -2
View File
@@ -10121,7 +10121,7 @@
{
"name": "keepTraffic",
"in": "query",
"required": true,
"required": false,
"description": "Pass 1 to retain the xray_client_traffic row after deletion.",
"schema": {
"type": "integer"
@@ -10176,7 +10176,7 @@
{
"name": "keepTraffic",
"in": "query",
"required": true,
"required": false,
"description": "Pass 1 to retain the xray_client_traffic row after deletion.",
"schema": {
"type": "integer"
+2
View File
@@ -1342,6 +1342,7 @@ export const sections: readonly Section[] = [
in: 'query',
type: 'integer',
desc: 'Pass 1 to retain the xray_client_traffic row after deletion.',
optional: true,
},
],
response: '{\n "success": true,\n "msg": "Client deleted"\n}',
@@ -1360,6 +1361,7 @@ export const sections: readonly Section[] = [
in: 'query',
type: 'integer',
desc: 'Pass 1 to retain the xray_client_traffic row after deletion.',
optional: true,
},
],
response: '{\n "success": true,\n "msg": "Client deleted"\n}',