mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 20:36:48 +01:00
05630776a0
* fix(server): more asset upload validation and docs
* remove unused DTO
* changed Object.keys() to Object.values()
* apply patch to openapi generator for web
* revert CreateAssetDto assetType enum
* resolve merge conflict
* Revert "resolve merge conflict"
This reverts commit 0e00805187
.
14 lines
1.2 KiB
Diff
14 lines
1.2 KiB
Diff
--- apiInner.mustache 2023-02-10 17:44:20.945845049 +0000
|
|
+++ apiInner.mustache.patch 2023-02-10 17:46:28.669054112 +0000
|
|
@@ -173,8 +173,9 @@
|
|
{{^isArray}}
|
|
if ({{paramName}} !== undefined) { {{^multipartFormData}}
|
|
localVarFormParams.set('{{baseName}}', {{paramName}} as any);{{/multipartFormData}}{{#multipartFormData}}{{#isPrimitiveType}}
|
|
- localVarFormParams.append('{{baseName}}', {{paramName}} as any);{{/isPrimitiveType}}{{^isPrimitiveType}}
|
|
- localVarFormParams.append('{{baseName}}', new Blob([JSON.stringify({{paramName}})], { type: "application/json", }));{{/isPrimitiveType}}{{/multipartFormData}}
|
|
+ localVarFormParams.append('{{baseName}}', {{paramName}} as any);{{/isPrimitiveType}}{{^isPrimitiveType}}{{#isEnum}}
|
|
+ localVarFormParams.append('{{baseName}}', {{paramName}} as any);{{/isEnum}}{{^isEnum}}
|
|
+ localVarFormParams.append('{{baseName}}', new Blob([JSON.stringify({{paramName}})], { type: "application/json", }));{{/isEnum}}{{/isPrimitiveType}}{{/multipartFormData}}
|
|
}{{/isArray}}
|
|
{{/formParams}}{{/vendorExtensions}}
|
|
{{#vendorExtensions}}{{#hasFormParams}}{{^multipartFormData}}
|