File

src/users/dto/create-apikey.dto.ts

Index

Properties

Properties

Public ip
Type : string
Decorators :
@IsNotEmpty()
@IsIP()
@IsString()
@IsOptional()
Public wildcard
Type : boolean
Decorators :
@IsBoolean()
@IsOptional()
import {
  IsIP,
  IsNotEmpty,
  IsString,
  IsOptional,
  IsBoolean,
} from 'class-validator';

export default class CreateApikeyDto {
  @IsNotEmpty()
  @IsIP()
  @IsString()
  @IsOptional()
  public ip: string;
  @IsBoolean()
  @IsOptional()
  public wildcard: boolean;
}

results matching ""

    No results matching ""