Skip to content

Commit e8068e1

Browse files
committed
Dev - updated documentation and added samples
1 parent 2504825 commit e8068e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1994
-1691
lines changed

.github/dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ updates:
55
schedule:
66
interval: daily
77
time: "10:00"
8-
timezone: Europe/Budapest
8+
timezone: Asia/Kolkata
99
open-pull-requests-limit: 5
1010
versioning-strategy: increase
1111
commit-message:
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
name: Dependabot auto-merge
2-
on:
3-
pull_request_target
4-
jobs:
5-
dependabot:
6-
runs-on: ubuntu-latest
7-
if: github.actor == 'dependabot[bot]'
8-
steps:
9-
- name: 'Auto approve PR by Dependabot'
10-
uses: hmarr/[email protected]
11-
with:
12-
github-token: "${{ secrets.TYPESTACK_BOT_TOKEN }}"
13-
- name: 'Comment merge command'
14-
uses: actions/github-script@v3
15-
with:
16-
github-token: ${{secrets.TYPESTACK_BOT_TOKEN }}
17-
script: |
18-
await github.issues.createComment({
19-
owner: context.repo.owner,
20-
repo: context.repo.repo,
21-
issue_number: context.issue.number,
22-
body: '@dependabot squash and merge'
23-
})
1+
# Basically I don't understand this as of now, therefore not using it, but you are welcome to contribute on this part.
2+
# name: Dependabot auto-merge
3+
# on:
4+
# pull_request_target
5+
# jobs:
6+
# dependabot:
7+
# runs-on: ubuntu-latest
8+
# if: github.actor == 'dependabot[bot]'
9+
# steps:
10+
# - name: 'Auto approve PR by Dependabot'
11+
# uses: hmarr/[email protected]
12+
# with:
13+
# github-token: "${{ secrets.TYPESTACK_BOT_TOKEN }}"
14+
# - name: 'Comment merge command'
15+
# uses: actions/github-script@v3
16+
# with:
17+
# github-token: ${{secrets.TYPESTACK_BOT_TOKEN }}
18+
# script: |
19+
# await github.issues.createComment({
20+
# owner: context.repo.owner,
21+
# repo: context.repo.repo,
22+
# issue_number: context.issue.number,
23+
# body: '@dependabot squash and merge'
24+
# })

.github/workflows/continuous-integration-workflow.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
node-version: ${{ matrix.node-version }}
2828
- run: npm ci --ignore-scripts
2929
- run: npm run test:ci
30-
- run: npm install codecov -g
31-
if: ${{ matrix.node-version == 'current' }}
32-
- run: codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }} --commit=$GITHUB_SHA --branch=${GITHUB_REF##*/}
33-
if: ${{ matrix.node-version == 'current' }}
30+
# - run: npm install codecov -g
31+
# if: ${{ matrix.node-version == 'current' }}
32+
# - run: codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }} --commit=$GITHUB_SHA --branch=${GITHUB_REF##*/}
33+
# if: ${{ matrix.node-version == 'current' }}
3434
build:
3535
name: Build
3636
runs-on: ubuntu-latest
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
name: 'Lock inactive threads'
2-
on:
3-
schedule:
4-
- cron: '0 0 * * *'
5-
jobs:
6-
lock:
7-
name: Lock closed issues
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: dessant/lock-threads@v2
11-
with:
12-
github-token: ${{ github.token }}
13-
issue-lock-inactive-days: 30
14-
pr-lock-inactive-days: 30
15-
issue-lock-comment: >
16-
This issue has been automatically locked since there
17-
has not been any recent activity after it was closed.
18-
Please open a new issue for related bugs.
19-
pr-lock-comment: >
20-
This pull request has been automatically locked since there
21-
has not been any recent activity after it was closed.
22-
Please open a new issue for related bugs.
1+
# Basically I don't understand this as of now, therefore not using it, but you are welcome to contribute on this part.
2+
# name: 'Lock inactive threads'
3+
# on:
4+
# schedule:
5+
# - cron: '0 0 * * *'
6+
# jobs:
7+
# lock:
8+
# name: Lock closed issues
9+
# runs-on: ubuntu-latest
10+
# steps:
11+
# - uses: dessant/lock-threads@v2
12+
# with:
13+
# github-token: ${{ github.token }}
14+
# issue-lock-inactive-days: 30
15+
# pr-lock-inactive-days: 30
16+
# issue-lock-comment: >
17+
# This issue has been automatically locked since there
18+
# has not been any recent activity after it was closed.
19+
# Please open a new issue for related bugs.
20+
# pr-lock-comment: >
21+
# This pull request has been automatically locked since there
22+
# has not been any recent activity after it was closed.
23+
# Please open a new issue for related bugs.

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Changelog
22

33
_This changelog follows the [keep a changelog][keep-a-changelog]_ format to maintain a human readable changelog.
4+
### [0.0.1](https://github.com/arizworld/class-validator-custom-errors/pull/1/) (2024-03-21)
5+
6+
### Added
7+
- added `transformFunction` in validatorOptions to customize the message for each time of validation.
8+
- added `transformKey` in validationOptions to pass specific keys to transformFunction for
9+
specific properties.
410

511
### [0.14.0](https://github.com/typestack/class-validator/compare/v0.13.2...v0.14.0) (2022-12-09)
612

LICENSE

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
The MIT License
33

4-
Copyright (c) 2015-2020 TypeStack
4+
Copyright (c) 2024-2024 Aritra Sadhukhan
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal
@@ -19,4 +19,9 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1919
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2020
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2121
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22-
THE SOFTWARE.
22+
THE SOFTWARE.
23+
24+
---
25+
26+
Modifications:
27+
- Added the ability to customize the error messages.

0 commit comments

Comments
 (0)