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