Vizzuality/landgriffon

View on GitHub
api/src/modules/indicator-coefficients/dto/create.indicator-coefficient.dto.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsNotEmpty, IsNumber, IsOptional } from 'class-validator';

export class CreateIndicatorCoefficientDto {
  @IsNumber()
  @IsOptional()
  @ApiPropertyOptional()
  value?: number;

  @IsNumber()
  @IsNotEmpty()
  @ApiProperty()
  year!: number;
}