mirror of
https://github.com/immich-app/immich.git
synced 2025-06-05 22:54:25 -04:00
fix spec
This commit is contained in:
parent
71cc045405
commit
606d4b66d0
@ -57,7 +57,7 @@ class TimeBucketAssetResponseDto {
|
|||||||
List<num> ratio;
|
List<num> ratio;
|
||||||
|
|
||||||
/// (stack ID, stack asset count) tuple
|
/// (stack ID, stack asset count) tuple
|
||||||
List<String> stack;
|
List<List<String>> stack;
|
||||||
|
|
||||||
List<String> thumbhash;
|
List<String> thumbhash;
|
||||||
|
|
||||||
@ -169,9 +169,11 @@ class TimeBucketAssetResponseDto {
|
|||||||
ratio: json[r'ratio'] is Iterable
|
ratio: json[r'ratio'] is Iterable
|
||||||
? (json[r'ratio'] as Iterable).cast<num>().toList(growable: false)
|
? (json[r'ratio'] as Iterable).cast<num>().toList(growable: false)
|
||||||
: const [],
|
: const [],
|
||||||
stack: json[r'stack'] is Iterable
|
stack: json[r'stack'] is List
|
||||||
? (json[r'stack'] as Iterable).cast<String>().toList(growable: false)
|
? (json[r'stack'] as List).map((e) =>
|
||||||
: const [],
|
e == null ? null : (e as List).cast<String>()
|
||||||
|
).toList()
|
||||||
|
: const [],
|
||||||
thumbhash: json[r'thumbhash'] is Iterable
|
thumbhash: json[r'thumbhash'] is Iterable
|
||||||
? (json[r'thumbhash'] as Iterable).cast<String>().toList(growable: false)
|
? (json[r'thumbhash'] as Iterable).cast<String>().toList(growable: false)
|
||||||
: const [],
|
: const [],
|
||||||
|
@ -13648,11 +13648,14 @@
|
|||||||
"stack": {
|
"stack": {
|
||||||
"description": "(stack ID, stack asset count) tuple",
|
"description": "(stack ID, stack asset count) tuple",
|
||||||
"items": {
|
"items": {
|
||||||
|
"items": {
|
||||||
|
"maxItems": 2,
|
||||||
|
"minItems": 2,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"nullable": true,
|
"nullable": true,
|
||||||
"type": "string"
|
"type": "array"
|
||||||
},
|
},
|
||||||
"maxItems": 2,
|
|
||||||
"minItems": 2,
|
|
||||||
"type": "array"
|
"type": "array"
|
||||||
},
|
},
|
||||||
"thumbhash": {
|
"thumbhash": {
|
||||||
|
@ -1399,7 +1399,7 @@ export type TimeBucketAssetResponseDto = {
|
|||||||
projectionType: (string | null)[];
|
projectionType: (string | null)[];
|
||||||
ratio: number[];
|
ratio: number[];
|
||||||
/** (stack ID, stack asset count) tuple */
|
/** (stack ID, stack asset count) tuple */
|
||||||
stack?: (string | null)[];
|
stack?: (string[] | null)[];
|
||||||
thumbhash: (string | null)[];
|
thumbhash: (string | null)[];
|
||||||
};
|
};
|
||||||
export type TimeBucketsResponseDto = {
|
export type TimeBucketsResponseDto = {
|
||||||
|
@ -87,11 +87,10 @@ export class TimeBucketAssetResponseDto implements TimeBucketAssets {
|
|||||||
@ApiProperty({
|
@ApiProperty({
|
||||||
type: 'array',
|
type: 'array',
|
||||||
items: {
|
items: {
|
||||||
type: 'string',
|
type: 'array',
|
||||||
|
items: { type: 'string', maxItems: 2, minItems: 2 },
|
||||||
nullable: true,
|
nullable: true,
|
||||||
},
|
},
|
||||||
maxItems: 2,
|
|
||||||
minItems: 2,
|
|
||||||
description: '(stack ID, stack asset count) tuple',
|
description: '(stack ID, stack asset count) tuple',
|
||||||
})
|
})
|
||||||
stack?: ([string, string] | null)[];
|
stack?: ([string, string] | null)[];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user