mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix: mobile upload duration type (#28362)
This commit is contained in:
@@ -16271,7 +16271,7 @@
|
|||||||
},
|
},
|
||||||
"duration": {
|
"duration": {
|
||||||
"description": "Duration in milliseconds (for videos)",
|
"description": "Duration in milliseconds (for videos)",
|
||||||
"maximum": 2147483647,
|
"maximum": 9007199254740991,
|
||||||
"minimum": 0,
|
"minimum": 0,
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export enum UploadFieldName {
|
|||||||
const AssetMediaBaseSchema = z.object({
|
const AssetMediaBaseSchema = z.object({
|
||||||
fileCreatedAt: isoDatetimeToDate.describe('File creation date'),
|
fileCreatedAt: isoDatetimeToDate.describe('File creation date'),
|
||||||
fileModifiedAt: isoDatetimeToDate.describe('File modification date'),
|
fileModifiedAt: isoDatetimeToDate.describe('File modification date'),
|
||||||
duration: z.int32().min(0).optional().describe('Duration in milliseconds (for videos)'),
|
duration: z.coerce.number().int().min(0).optional().describe('Duration in milliseconds (for videos)'),
|
||||||
filename: z.string().optional().describe('Filename'),
|
filename: z.string().optional().describe('Filename'),
|
||||||
/** The properties below are added to correctly generate the API docs and client SDKs. Validation should be handled in the controller. */
|
/** The properties below are added to correctly generate the API docs and client SDKs. Validation should be handled in the controller. */
|
||||||
[UploadFieldName.ASSET_DATA]: z.any().describe('Asset file data').meta({ type: 'string', format: 'binary' }),
|
[UploadFieldName.ASSET_DATA]: z.any().describe('Asset file data').meta({ type: 'string', format: 'binary' }),
|
||||||
|
|||||||
Reference in New Issue
Block a user