Skip to content

Commit

Permalink
fix(override): fix class-validator overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-bechara committed Feb 17, 2024
1 parent 594550c commit 042b718
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion source/override.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ export * from '@nestjs/core';
export * from '@nestjs/platform-fastify';
export * from '@nestjs/swagger';
export * from 'class-transformer';
export * from 'class-validator';
export * from 'rxjs';

export { EntityName, MetadataStorage, NotFoundError, Subscriber } from '@mikro-orm/core';
export { EntityRepository as MySqlEntityRepository } from '@mikro-orm/mysql';
export { EntityRepository as PostgreSqlEntityRepository } from '@mikro-orm/postgresql';
export { Head, Logger, Options, SerializeOptions, ValidationError, Type } from '@nestjs/common';
export { Type as SetType, serialize } from 'class-transformer';
export { ValidationArguments, ValidatorConstraint, ValidatorConstraintInterface, validate } from 'class-validator';
export { equals, isEmpty, min, max } from 'class-validator';
export { v1 as uuidV1, v3 as uuidV3, v4 as uuidV4, v5 as uuidV5 } from 'uuid';

export { CacheInterceptor } from './cache/cache.interceptor';
Expand All @@ -24,3 +25,41 @@ export { HttpService } from './http/http.service';
export { LogService as LoggerService } from './log/log.service';
export { Response } from './transform/transform.decorator';

export {
Contains,
Equals,
ArrayMaxSize,
ArrayMinSize,
IsArray,
IsBase64,
IsBoolean,
IsDate,
IsDefined,
IsEmail,
IsEmpty,
IsEnum,
IsIn,
IsInt,
IsISO8601,
IsJSON,
IsJWT,
IsNotEmpty,
IsNotIn,
IsNumber,
IsNumberString,
IsObject,
IsOptional,
IsString,
IsUrl,
IsUUID,
Length,
Matches,
Max,
MaxLength,
Min,
MinLength,
NotContains,
NotEquals,
ValidateIf,
ValidateNested,
} from './validate/validate.decorator';

0 comments on commit 042b718

Please sign in to comment.