mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 21:10:23 +00:00
fix: 提高Api兼容性
This commit is contained in:
@@ -9,10 +9,10 @@ const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
flag: { type: 'string' },
|
||||
approve: { type: 'boolean' },
|
||||
approve: { type: ['string', 'boolean'] },
|
||||
reason: { type: 'string' }
|
||||
},
|
||||
required: ['flag']
|
||||
required: ['flag'],
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
@@ -8,10 +8,10 @@ const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
flag: { type: 'string' },
|
||||
approve: { type: 'boolean' },
|
||||
approve: { type: ['string', 'boolean'] },
|
||||
remark: { type: 'string' }
|
||||
},
|
||||
required: ['flag','approve']
|
||||
required: ['flag', 'approve']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
Reference in New Issue
Block a user