string tuple

This commit is contained in:
mertalev
2025-05-05 10:33:48 -04:00
parent 21bbf2f5e2
commit 71cc045405
12 changed files with 21 additions and 127 deletions
+5 -4
View File
@@ -87,13 +87,14 @@ export class TimeBucketAssetResponseDto implements TimeBucketAssets {
@ApiProperty({
type: 'array',
items: {
type: 'array',
type: 'string',
nullable: true,
items: { oneOf: [{ type: 'string' }, { type: 'number' }], minItems: 2, maxItems: 2 },
},
description: 'The stack ID and stack asset count as a tuple',
maxItems: 2,
minItems: 2,
description: '(stack ID, stack asset count) tuple',
})
stack?: ([string, number] | null)[];
stack?: ([string, string] | null)[];
@ApiProperty({ type: 'array', items: { type: 'string', nullable: true } })
projectionType!: (string | null)[];