From 418f41b42900cfc39329245da083f6b79a9a91e4 Mon Sep 17 00:00:00 2001 From: Swarnim Doegar Date: Wed, 11 Feb 2026 15:07:31 +0530 Subject: [PATCH 1/6] Add mimeType and format to video file schema and metadata Added mimeType field for video files and updated format. --- openapi/v1.0.0.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openapi/v1.0.0.yaml b/openapi/v1.0.0.yaml index 96d64fc..4fe8c81 100644 --- a/openapi/v1.0.0.yaml +++ b/openapi/v1.0.0.yaml @@ -6304,6 +6304,9 @@ components: format: type: string description: The format of the file (e.g., 'jpg', 'mp4'). + mimeType: + type: string + description: (Video only) The MIME type of the video file (e.g., 'video/mp4'). hasColorProfile: type: boolean description: Indicates if the image has a color profile. @@ -8331,6 +8334,8 @@ components: audioCodec: aac videoCodec: h264 size: 23490 + format: "mp4" + mimeType: video/mp4 securitySchemes: basicAuth: From ab11d1740cb8707d1c46b58efe8718d7ed2fb0a6 Mon Sep 17 00:00:00 2001 From: Swarnim Doegar Date: Wed, 11 Feb 2026 17:56:37 +0530 Subject: [PATCH 2/6] Revise mimeType description in openapi.yaml Updated description for mimeType to include image types. --- openapi/v1.0.0.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi/v1.0.0.yaml b/openapi/v1.0.0.yaml index 4fe8c81..35614cb 100644 --- a/openapi/v1.0.0.yaml +++ b/openapi/v1.0.0.yaml @@ -6306,7 +6306,7 @@ components: description: The format of the file (e.g., 'jpg', 'mp4'). mimeType: type: string - description: (Video only) The MIME type of the video file (e.g., 'video/mp4'). + description: The MIME type of the file (e.g., 'image/jpeg', 'video/mp4'). hasColorProfile: type: boolean description: Indicates if the image has a color profile. From 0e061aa1c1758ebd63e6eab8a110b486593fc321 Mon Sep 17 00:00:00 2001 From: Swarnim Doegar Date: Wed, 11 Feb 2026 17:58:34 +0530 Subject: [PATCH 3/6] Add mimeType for image/jpeg in OpenAPI Image metadata example --- openapi/v1.0.0.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/openapi/v1.0.0.yaml b/openapi/v1.0.0.yaml index 35614cb..7be9ddd 100644 --- a/openapi/v1.0.0.yaml +++ b/openapi/v1.0.0.yaml @@ -8262,6 +8262,7 @@ components: width: 100 size: 7749 format: jpg + mimeType: image/jpeg hasColorProfile: true quality: 0 density: 72 From ab2eeb24a782e454c1c66814e9a7e0596857645d Mon Sep 17 00:00:00 2001 From: Swarnim Doegar Date: Wed, 11 Feb 2026 21:23:47 +0530 Subject: [PATCH 4/6] Add format and mimeType to upload API response Added format and mimeType fields to video metadata. --- openapi/v1.0.0.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openapi/v1.0.0.yaml b/openapi/v1.0.0.yaml index 7be9ddd..6beb22e 100644 --- a/openapi/v1.0.0.yaml +++ b/openapi/v1.0.0.yaml @@ -6080,6 +6080,12 @@ components: videoCodec: type: string description: The video codec used in the video (only for video). + format: + type: string + description: The format of the uploaded file (e.g., jpg, mp4). + mimeType: + type: string + description: The MIME type of the uploaded file (e.g., image/jpeg, video/mp4). tags: type: [array, null] items: @@ -8249,6 +8255,8 @@ components: audioCodec: aac videoCodec: h264 fileType: non-image + format: "mp4" + mimeType: video/mp4 metadata: height: 720 width: 720 From 269b1de806d8d9e020ce8c38e13a3ee126475dad Mon Sep 17 00:00:00 2001 From: Swarnim Doegar Date: Wed, 11 Feb 2026 21:26:23 +0530 Subject: [PATCH 5/6] Add format and mimeType to Upload Image Response example Added format and mimeType fields for image in the OpenAPI specification. --- openapi/v1.0.0.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openapi/v1.0.0.yaml b/openapi/v1.0.0.yaml index 6beb22e..c0e3df8 100644 --- a/openapi/v1.0.0.yaml +++ b/openapi/v1.0.0.yaml @@ -8239,6 +8239,8 @@ components: width: 1000 orientation: 1 thumbnailUrl: https://ik.imagekit.io/demo/tr:n-ik_ml_thumbnail/test-image.jpg + format: "jpg" + mimeType: image/jpeg UploadResonseVideo: fileId: 6673f99b37b244ef54d98f11 name: test-video.mp4 From 825b6abbbdc4c629c0d5f15dd814510e38e215ff Mon Sep 17 00:00:00 2001 From: Swarnim Doegar Date: Fri, 13 Feb 2026 18:09:49 +0530 Subject: [PATCH 6/6] Remove top level format and mimeType key from upload response --- openapi/v1.0.0.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/openapi/v1.0.0.yaml b/openapi/v1.0.0.yaml index c0e3df8..25c1654 100644 --- a/openapi/v1.0.0.yaml +++ b/openapi/v1.0.0.yaml @@ -6083,9 +6083,6 @@ components: format: type: string description: The format of the uploaded file (e.g., jpg, mp4). - mimeType: - type: string - description: The MIME type of the uploaded file (e.g., image/jpeg, video/mp4). tags: type: [array, null] items: @@ -8239,8 +8236,6 @@ components: width: 1000 orientation: 1 thumbnailUrl: https://ik.imagekit.io/demo/tr:n-ik_ml_thumbnail/test-image.jpg - format: "jpg" - mimeType: image/jpeg UploadResonseVideo: fileId: 6673f99b37b244ef54d98f11 name: test-video.mp4 @@ -8257,8 +8252,6 @@ components: audioCodec: aac videoCodec: h264 fileType: non-image - format: "mp4" - mimeType: video/mp4 metadata: height: 720 width: 720 @@ -8267,6 +8260,8 @@ components: audioCodec: aac videoCodec: h264 size: 1378305 + format: "mp4" + mimeType: video/mp4 ImageMetadata: height: 68 width: 100