feat(server): return asset checksum (#2582)

* feat: return asset checksum

* chore: generate open api

* chore: coverage

* feat(server): support base64 hashes in bulk upload check:

* chore: generate open api
This commit is contained in:
Jason Rasmussen
2023-05-27 21:56:17 -04:00
committed by GitHub
parent 7f0ad8e2d2
commit bca4626708
17 changed files with 111 additions and 103 deletions
+10 -14
View File
@@ -4446,9 +4446,8 @@
"originalFileName": {
"type": "string"
},
"resizePath": {
"type": "string",
"nullable": true
"resized": {
"type": "boolean"
},
"fileCreatedAt": {
"type": "string"
@@ -4472,14 +4471,6 @@
"duration": {
"type": "string"
},
"webpPath": {
"type": "string",
"nullable": true
},
"encodedVideoPath": {
"type": "string",
"nullable": true
},
"exifInfo": {
"$ref": "#/components/schemas/ExifResponseDto"
},
@@ -4501,6 +4492,10 @@
"items": {
"$ref": "#/components/schemas/PersonResponseDto"
}
},
"checksum": {
"type": "string",
"description": "base64 encoded sha1 hash"
}
},
"required": [
@@ -4511,7 +4506,7 @@
"deviceId",
"originalPath",
"originalFileName",
"resizePath",
"resized",
"fileCreatedAt",
"fileModifiedAt",
"updatedAt",
@@ -4519,7 +4514,7 @@
"isArchived",
"mimeType",
"duration",
"webpPath"
"checksum"
]
},
"AlbumResponseDto": {
@@ -6173,7 +6168,8 @@
"type": "string"
},
"checksum": {
"type": "string"
"type": "string",
"description": "base64 or hex encoded sha1 hash"
}
},
"required": [