mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 16:00:27 +00:00
fix(schema): 将响应 data 字段标记为必填
This commit is contained in:
@@ -660,6 +660,7 @@ function appendActionPaths (openapi: Record<string, unknown>) {
|
||||
{ $ref: '#/components/schemas/BaseResponse' },
|
||||
{
|
||||
type: 'object',
|
||||
required: ['data'],
|
||||
properties: {
|
||||
data: {
|
||||
...(typeof cleanReturn === 'object' && cleanReturn ? cleanReturn : {}),
|
||||
|
||||
Reference in New Issue
Block a user