Skip to content

Commit

Permalink
Merge branch 'renovate/class-validator-0.x' of https://github.com/Bor…
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jan 21, 2021
2 parents 778f5d3 + 52d3ec7 commit 483c288
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 21 deletions.
2 changes: 2 additions & 0 deletions lib/type-helpers.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export function inheritValidationMetadata(
const targetMetadata = metadataStorage.getTargetValidationMetadatas(
parentClass,
null!,
false,
false,
);
return targetMetadata
.filter(
Expand Down
37 changes: 18 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@typescript-eslint/eslint-plugin": "4.14.0",
"@typescript-eslint/parser": "4.14.0",
"class-transformer": "0.3.2",
"class-validator": "0.12.2",
"class-validator": "0.13.1",
"eslint": "7.18.0",
"eslint-config-prettier": "7.2.0",
"eslint-plugin-import": "2.22.1",
Expand All @@ -44,7 +44,7 @@
"peerDependencies": {
"@nestjs/common": "^7.0.8",
"class-transformer": "^0.2.0 || ^0.3.0",
"class-validator": "^0.11.1 || ^0.12.0",
"class-validator": "^0.11.1 || ^0.12.0 || ^0.13.0",
"reflect-metadata": "^0.1.12"
},
"lint-staged": {
Expand Down
2 changes: 2 additions & 0 deletions tests/type-helpers.test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export function getValidationMetadataByTarget(target: Function) {
const targetMetadata = metadataStorage.getTargetValidationMetadatas(
target,
null!,
false,
false,
);
return targetMetadata;
}

0 comments on commit 483c288

Please sign in to comment.