docs(api): update swagger docs with field descriptions and operationId rename

- Add minimum: 0 validation to LogRetention properties (days, keep_size, last)
- Add "interned" descriptions to fstype, path, and name fields
- Rename operationId and x-id from "routes" to "list" for GET /route endpoint
This commit is contained in:
yusing
2026-02-22 19:54:56 +08:00
parent 4e5ded13fb
commit f6a82a3b7c
3 changed files with 18 additions and 6 deletions

View File

@@ -2946,8 +2946,8 @@
}
}
},
"x-id": "routes",
"operationId": "routes"
"x-id": "list",
"operationId": "list"
}
},
"/route/playground": {
@@ -4844,16 +4844,19 @@
"properties": {
"days": {
"type": "integer",
"minimum": 0,
"x-nullable": false,
"x-omitempty": false
},
"keep_size": {
"type": "integer",
"minimum": 0,
"x-nullable": false,
"x-omitempty": false
},
"last": {
"type": "integer",
"minimum": 0,
"x-nullable": false,
"x-omitempty": false
}
@@ -6644,11 +6647,13 @@
"x-omitempty": false
},
"fstype": {
"description": "interned",
"type": "string",
"x-nullable": false,
"x-omitempty": false
},
"path": {
"description": "interned",
"type": "string",
"x-nullable": false,
"x-omitempty": false
@@ -6995,6 +7000,7 @@
"x-omitempty": false
},
"name": {
"description": "interned",
"type": "string",
"x-nullable": false,
"x-omitempty": false