Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 865ffa8

Browse files
committed
Merge branch 'main' of https://github.com/nestray/better-validation-pipe into main
2 parents 6042502 + 3d4a11e commit 865ffa8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@ npm install @nestray/better-validation-pipe
4646
## Motivation
4747

4848
This behavior is achievable by passing a custom `exceptionFactory` to the original pipe, but I found myself writing the same exception factory for each one of my projects, so I made this small package.
49+
50+
## Inspiration
51+
52+
This is the same way [Laravel](https://laravel.com/docs/master/validation) returns errors; as an object that contains arrays of errors (strings).

0 commit comments

Comments
 (0)