fix(file): allow arbitrary ocean booking documents
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user