fix: 提高Api兼容性

This commit is contained in:
手瓜一十雪 committed 2024-06-03 17:09:23 +08:00
1 parent 34cc68f9fe
commit 54d4d1b7f8
2 files changed
+4 -4

No files matched your search

@@ -9,10 +9,10 @@ const SchemaData = {
type: 'object', type: 'object',
properties: { properties: {
flag: { type: 'string' }, flag: { type: 'string' },
approve: { type: 'boolean' }, approve: { type: ['string', 'boolean'] },
reason: { type: 'string' } reason: { type: 'string' }
}, },
required: ['flag'] required: ['flag'],
} as const satisfies JSONSchema; } as const satisfies JSONSchema;
type Payload = FromSchema<typeof SchemaData>; type Payload = FromSchema<typeof SchemaData>;
@@ -8,10 +8,10 @@ const SchemaData = {
type: 'object', type: 'object',
properties: { properties: {
flag: { type: 'string' }, flag: { type: 'string' },
approve: { type: 'boolean' }, approve: { type: ['string', 'boolean'] },
remark: { type: 'string' } remark: { type: 'string' }
}, },
required: ['flag','approve'] required: ['flag', 'approve']
} as const satisfies JSONSchema; } as const satisfies JSONSchema;
type Payload = FromSchema<typeof SchemaData>; type Payload = FromSchema<typeof SchemaData>;