first commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { Transform } from 'class-transformer';
|
||||
import { IsBoolean, IsOptional } from 'class-validator';
|
||||
|
||||
export class ListPlanosQueryDto {
|
||||
@IsOptional()
|
||||
@Transform(({ value }) => (value === undefined ? undefined : value === 'true' || value === true))
|
||||
@IsBoolean()
|
||||
ativo?: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user