fix: complaint trends API response type
- Changed response type from strict object to t.Any() - Fixes 422 Unprocessable Entity error - Allows flexible response format matching generated types Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -89,13 +89,7 @@ export const complaint = new Elysia({
|
||||
{
|
||||
response: {
|
||||
200: t.Object({
|
||||
data: t.Array(
|
||||
t.Object({
|
||||
month: t.String(),
|
||||
month_num: t.Number(),
|
||||
count: t.Number(),
|
||||
}),
|
||||
),
|
||||
data: t.Array(t.Any()),
|
||||
}),
|
||||
500: t.Object({ error: t.String() }),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user