Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion open-api/immich-openapi-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -16271,7 +16271,7 @@
},
"duration": {
"description": "Duration in milliseconds (for videos)",
"maximum": 2147483647,
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
Expand Down
2 changes: 1 addition & 1 deletion server/src/dtos/asset-media.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export enum UploadFieldName {
const AssetMediaBaseSchema = z.object({
fileCreatedAt: isoDatetimeToDate.describe('File creation 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'),
/** 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' }),
Expand Down
Loading