mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2026-02-08 02:56:13 +01:00
added more security check rules in dtos
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsNotEmpty, IsString } from 'class-validator';
|
||||
import { IsNotEmpty, IsString, IsUUID } from 'class-validator';
|
||||
export class TradeDto {
|
||||
@ApiProperty({
|
||||
type: String,
|
||||
description: 'Offer UUID ',
|
||||
example: '121212-DSDZ1-21212DJDZ-31313',
|
||||
})
|
||||
@IsUUID()
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
id_offer: string;
|
||||
|
||||
Reference in New Issue
Block a user