import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger"
import { IsNumberString, IsOptional } from "class-validator"

export class GetLimitsDTO {
    @ApiProperty()
    @IsNumberString()
    city_id: number

    @ApiProperty()
    @IsNumberString()
    year: number

    @ApiPropertyOptional()
    @IsNumberString()
    @IsOptional()
    offset?: number

    @ApiPropertyOptional()
    @IsNumberString()
    @IsOptional()
    limit?: number
}