fix(file): allow arbitrary ocean booking documents

This commit is contained in:
2026-08-31 19:54:05 +08:00
parent 47ce84d122
commit f2a980e5c1
5 changed files with 16 additions and 12 deletions
@@ -27,7 +27,7 @@ paths:
file:
type: string
format: binary
description: TXT/PDF/JPG/PNG,最大10MiB
description: 任意格式,最大50MiB;File保留规范化Content-Type与原始文件名
responses:
'200': {$ref: '#/components/responses/Metadata'}
/internal/file/v1/business-files/{tenantId}/OCEAN_BOOKING_DOCUMENT/{oceanBookingId}/{fileId}:
@@ -108,5 +108,5 @@ components:
description: oceanBookingId
fileName: {type: string}
sha256: {type: string, pattern: '^[0-9a-f]{64}$'}
contentType: {type: string, enum: [text/plain, application/pdf, image/jpeg, image/png]}
sizeBytes: {type: integer, format: int64, minimum: 1, maximum: 10485760}
contentType: {type: string}
sizeBytes: {type: integer, format: int64, minimum: 1, maximum: 52428800}