class-validator#IsBooleanString TypeScript Examples

The following examples show how to use class-validator#IsBooleanString. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: filter-site.dto.ts    From aqualink-app with MIT License 5 votes vote down vote up
@IsOptional()
  @IsBooleanString()
  readonly hasSpotter?: string;
Example #2
Source File: Pagination.ts    From tatum-blockchain-connector with MIT License 5 votes vote down vote up
@IsBooleanString()
  @ValidateIf(o => !o.pageSize)
  @IsIn(['true'])
  @IsNotEmpty()
  public count?: string;
Example #3
Source File: Pagination.ts    From tatum-blockchain-connector with MIT License 5 votes vote down vote up
@IsBooleanString()
  @ValidateIf(o => !o.pageSize)
  @IsIn(['true'])
  @IsNotEmpty()
  public count?: string;
Example #4
Source File: PathAddressReverse.ts    From tatum-blockchain-connector with MIT License 5 votes vote down vote up
@IsNotEmpty()
    @IsBooleanString()
    public reverse: string;