1

I return object with different properties, like this

export class ProductsDto {
  [product: string]: ProductDto
}

export class ProductDto {
  @ApiResponseProperty()
  id: number;

  @ApiResponseProperty()
  price: number;
}

But, I don't see structure in swagger?

Vladimir Golub
  • 523
  • 1
  • 8
  • 22

0 Answers0