Feat: add more tests

This commit is contained in:
2025-12-07 23:59:24 +08:00
parent 1f313fc17d
commit f191aef810
17 changed files with 307 additions and 25 deletions

View File

@@ -86,7 +86,10 @@ const docTemplate = `{
],
"responses": {
"200": {
"description": "OK"
"description": "OK",
"schema": {
"$ref": "#/definitions/api.postImageOutput"
}
},
"401": {
"description": "Unauthorized"
@@ -264,6 +267,9 @@ const docTemplate = `{
"type": "integer"
}
},
"extension": {
"type": "string"
},
"id": {
"type": "integer"
},
@@ -275,6 +281,23 @@ const docTemplate = `{
}
}
},
"api.postImageOutput": {
"type": "object",
"properties": {
"extension": {
"type": "string"
},
"id": {
"type": "integer"
},
"uploadedAt": {
"type": "string"
},
"uploadedUserId": {
"type": "string"
}
}
},
"api.putImageAliasesInput": {
"type": "object",
"properties": {