cities-response.dto.tsβ’529 B
import { ApiProperty } from '@nestjs/swagger'
export class CitiesResponseDto {
@ApiProperty({
description: 'The region name',
example: 'America',
type: String,
})
region!: string
@ApiProperty({
description: 'List of cities/locations in the region',
example: ['New_York', 'Los_Angeles', 'Chicago', 'Denver', 'Phoenix'],
type: [String],
})
cities!: string[]
@ApiProperty({
description: 'Total number of cities in the region',
example: 150,
type: Number,
})
count!: number
}