From 496b0c7076a23a6b34e2ff7ede94ee85bafe9e1a Mon Sep 17 00:00:00 2001 From: Daimolean <92239625+wuzihao051119@users.noreply.github.com> Date: Tue, 22 Jul 2025 17:29:14 +0800 Subject: [PATCH] fix(server): missing integer type (#20075) --- .../openapi/lib/model/sync_asset_face_v1.dart | Bin 5338 -> 5374 bytes open-api/immich-openapi-specs.json | 12 ++++++------ server/src/dtos/sync.dto.ts | 6 ++++++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/mobile/openapi/lib/model/sync_asset_face_v1.dart b/mobile/openapi/lib/model/sync_asset_face_v1.dart index 853a8a1514255f4d9bdae4e525d022cddc73ae94..60d1766e347b8a6df73ede7532ae14a62c64f764 100644 GIT binary patch delta 440 zcmcbm`A>7hQ6|^Syb^_^{L;LX%)E4`{E7%eYc4JY1$0p(Y@(5HwUfD+6~#e%GIJBt zQ$12M(=$q7IyO5o|K!ljO)LmY%qdOvPYbCmNVNf~wbRHd&d<|PC{jnUezH7|q>ho5 z0*pmzZ delta 357 zcmeyTc}sJ{Q6|^C(p-h4{L;LX%)E4`{E7%eYc4JY1$0p(Y@(5HwUfD+6~#e%GIJBt zQ$12M(=$q7IyO5o|K#8WO6nCP78R#zsH;>@F60nnu2t8Z{EjKZQ6YOoovXDl|QNFD&2sRIlQ2ms53XQq^7 QV0RBf9;|Wm3tlmH0QrY@pa1{> diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json index 2f41318d6..4acd43120 100644 --- a/open-api/immich-openapi-specs.json +++ b/open-api/immich-openapi-specs.json @@ -13805,25 +13805,25 @@ "type": "string" }, "boundingBoxX1": { - "type": "number" + "type": "integer" }, "boundingBoxX2": { - "type": "number" + "type": "integer" }, "boundingBoxY1": { - "type": "number" + "type": "integer" }, "boundingBoxY2": { - "type": "number" + "type": "integer" }, "id": { "type": "string" }, "imageHeight": { - "type": "number" + "type": "integer" }, "imageWidth": { - "type": "number" + "type": "integer" }, "personId": { "nullable": true, diff --git a/server/src/dtos/sync.dto.ts b/server/src/dtos/sync.dto.ts index e0c9c059c..c8b1a7dde 100644 --- a/server/src/dtos/sync.dto.ts +++ b/server/src/dtos/sync.dto.ts @@ -261,11 +261,17 @@ export class SyncAssetFaceV1 { id!: string; assetId!: string; personId!: string | null; + @ApiProperty({ type: 'integer' }) imageWidth!: number; + @ApiProperty({ type: 'integer' }) imageHeight!: number; + @ApiProperty({ type: 'integer' }) boundingBoxX1!: number; + @ApiProperty({ type: 'integer' }) boundingBoxY1!: number; + @ApiProperty({ type: 'integer' }) boundingBoxX2!: number; + @ApiProperty({ type: 'integer' }) boundingBoxY2!: number; sourceType!: string; }