mirror of
https://github.com/immich-app/immich.git
synced 2025-07-31 15:08:44 -04:00
fix(server): missing integer type (#20075)
This commit is contained in:
parent
166452640d
commit
496b0c7076
24
mobile/openapi/lib/model/sync_asset_face_v1.dart
generated
24
mobile/openapi/lib/model/sync_asset_face_v1.dart
generated
@ -27,19 +27,19 @@ class SyncAssetFaceV1 {
|
|||||||
|
|
||||||
String assetId;
|
String assetId;
|
||||||
|
|
||||||
num boundingBoxX1;
|
int boundingBoxX1;
|
||||||
|
|
||||||
num boundingBoxX2;
|
int boundingBoxX2;
|
||||||
|
|
||||||
num boundingBoxY1;
|
int boundingBoxY1;
|
||||||
|
|
||||||
num boundingBoxY2;
|
int boundingBoxY2;
|
||||||
|
|
||||||
String id;
|
String id;
|
||||||
|
|
||||||
num imageHeight;
|
int imageHeight;
|
||||||
|
|
||||||
num imageWidth;
|
int imageWidth;
|
||||||
|
|
||||||
String? personId;
|
String? personId;
|
||||||
|
|
||||||
@ -104,13 +104,13 @@ class SyncAssetFaceV1 {
|
|||||||
|
|
||||||
return SyncAssetFaceV1(
|
return SyncAssetFaceV1(
|
||||||
assetId: mapValueOfType<String>(json, r'assetId')!,
|
assetId: mapValueOfType<String>(json, r'assetId')!,
|
||||||
boundingBoxX1: num.parse('${json[r'boundingBoxX1']}'),
|
boundingBoxX1: mapValueOfType<int>(json, r'boundingBoxX1')!,
|
||||||
boundingBoxX2: num.parse('${json[r'boundingBoxX2']}'),
|
boundingBoxX2: mapValueOfType<int>(json, r'boundingBoxX2')!,
|
||||||
boundingBoxY1: num.parse('${json[r'boundingBoxY1']}'),
|
boundingBoxY1: mapValueOfType<int>(json, r'boundingBoxY1')!,
|
||||||
boundingBoxY2: num.parse('${json[r'boundingBoxY2']}'),
|
boundingBoxY2: mapValueOfType<int>(json, r'boundingBoxY2')!,
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
id: mapValueOfType<String>(json, r'id')!,
|
||||||
imageHeight: num.parse('${json[r'imageHeight']}'),
|
imageHeight: mapValueOfType<int>(json, r'imageHeight')!,
|
||||||
imageWidth: num.parse('${json[r'imageWidth']}'),
|
imageWidth: mapValueOfType<int>(json, r'imageWidth')!,
|
||||||
personId: mapValueOfType<String>(json, r'personId'),
|
personId: mapValueOfType<String>(json, r'personId'),
|
||||||
sourceType: mapValueOfType<String>(json, r'sourceType')!,
|
sourceType: mapValueOfType<String>(json, r'sourceType')!,
|
||||||
);
|
);
|
||||||
|
@ -13805,25 +13805,25 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"boundingBoxX1": {
|
"boundingBoxX1": {
|
||||||
"type": "number"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"boundingBoxX2": {
|
"boundingBoxX2": {
|
||||||
"type": "number"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"boundingBoxY1": {
|
"boundingBoxY1": {
|
||||||
"type": "number"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"boundingBoxY2": {
|
"boundingBoxY2": {
|
||||||
"type": "number"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"id": {
|
"id": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"imageHeight": {
|
"imageHeight": {
|
||||||
"type": "number"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"imageWidth": {
|
"imageWidth": {
|
||||||
"type": "number"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"personId": {
|
"personId": {
|
||||||
"nullable": true,
|
"nullable": true,
|
||||||
|
@ -261,11 +261,17 @@ export class SyncAssetFaceV1 {
|
|||||||
id!: string;
|
id!: string;
|
||||||
assetId!: string;
|
assetId!: string;
|
||||||
personId!: string | null;
|
personId!: string | null;
|
||||||
|
@ApiProperty({ type: 'integer' })
|
||||||
imageWidth!: number;
|
imageWidth!: number;
|
||||||
|
@ApiProperty({ type: 'integer' })
|
||||||
imageHeight!: number;
|
imageHeight!: number;
|
||||||
|
@ApiProperty({ type: 'integer' })
|
||||||
boundingBoxX1!: number;
|
boundingBoxX1!: number;
|
||||||
|
@ApiProperty({ type: 'integer' })
|
||||||
boundingBoxY1!: number;
|
boundingBoxY1!: number;
|
||||||
|
@ApiProperty({ type: 'integer' })
|
||||||
boundingBoxX2!: number;
|
boundingBoxX2!: number;
|
||||||
|
@ApiProperty({ type: 'integer' })
|
||||||
boundingBoxY2!: number;
|
boundingBoxY2!: number;
|
||||||
sourceType!: string;
|
sourceType!: string;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user