Skip to content

Commit

Permalink
Merge pull request #3264 from degradingsky746/fix/class-validator-isu…
Browse files Browse the repository at this point in the history
…uid-casing

fix: incorrect IsUuid class-validator decorator
  • Loading branch information
kamilmysliwiec authored Jan 23, 2025
2 parents 5fdc39c + 3b8ead5 commit 7e6f5bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/services/decorators-properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const decoratorsProperties = [
},
{
mappingType: decoratorsPropertiesMappingType.INDIRECT_VALUE,
decorator: 'IsUuid',
decorator: 'IsUUID',
property: 'format',
value: 'uuid'
},
Expand Down
4 changes: 2 additions & 2 deletions test/plugin/fixtures/create-cat.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class CreateCatDto {
response: Record<string, any>;
@IsUrl()
githubAccount: string;
@IsUuid()
@IsUUID()
transactionId: string;
@IsMobilePhone()
phoneNumber: string;
Expand Down Expand Up @@ -177,7 +177,7 @@ __decorate([
IsUrl()
], CreateCatDto.prototype, "githubAccount", void 0);
__decorate([
IsUuid()
IsUUID()
], CreateCatDto.prototype, "transactionId", void 0);
__decorate([
IsMobilePhone()
Expand Down

0 comments on commit 7e6f5bf

Please sign in to comment.