Skip to content

Commit

Permalink
two dto with same name then swagger cannot recognized
Browse files Browse the repository at this point in the history
  • Loading branch information
bahram1249 committed Jun 19, 2024
1 parent b43dfaa commit c7d2213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AutoMap } from 'automapper-classes';
import { IsNumber, Max, Min } from 'class-validator';
import { i18nValidationMessage } from 'nestjs-i18n';

export class EntityTypeFactorDto {
export class UserEntityTypeFactorDto {
@AutoMap()
@IsNumber(
{},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
MinLength,
} from 'class-validator';
import { i18nValidationMessage } from 'nestjs-i18n';
import { EntityTypeFactorDto } from './entity-type-factor.dto';
import { UserEntityTypeFactorDto } from './entity-type-factor.dto';

export class ProductCommentDto {
@MinLength(3, {
Expand All @@ -33,5 +33,5 @@ export class ProductCommentDto {

@IsArray()
@IsOptional()
entityTypeFactors?: EntityTypeFactorDto[];
entityTypeFactors?: UserEntityTypeFactorDto[];
}

0 comments on commit c7d2213

Please sign in to comment.