mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
refactor(schema): simplify validation and OpenAPI generation (#2709)
This commit is contained in:
1 parent
4bc5593f9f
commit
de1fd95a99
510 files changed
+29494
-36131
No files matched your search
@@ -4,6 +4,7 @@ import {Readable} from 'node:stream';
|
||||
import {HarvestIdParam, MessageIdParam} from '@fluxer/schema/src/domains/common/CommonParamSchemas';
|
||||
import {MessageListResponse} from '@fluxer/schema/src/domains/message/MessageResponseSchemas';
|
||||
import {
|
||||
HarvestArchiveResponse,
|
||||
HarvestCreationResponseSchema,
|
||||
HarvestDownloadUrlResponse,
|
||||
HarvestStatusResponseSchema,
|
||||
@@ -280,8 +281,9 @@ export function UserContentController(app: HonoApp) {
|
||||
OpenAPI({
|
||||
operationId: 'download_data_harvest_archive',
|
||||
summary: 'Download data harvest archive',
|
||||
responseSchema: null,
|
||||
statusCode: 200,
|
||||
responseSchema: HarvestArchiveResponse,
|
||||
responseContentType: 'application/zip',
|
||||
statusCode: [200, 206],
|
||||
security: [],
|
||||
tags: ['Users'],
|
||||
description:
|
||||
|
||||
Reference in new issue
Block a user