Skip to content

Commit d38b314

Browse files
Update Readme.md
1 parent 3ffc272 commit d38b314

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Readme.md

-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ There are lots of existing validation libraries—[`joi`](https://github.com/hap
149149

150150
- **They don't throw errors.** Many don't actually throw the errors, forcing you to wrap everywhere. Although helpful in the days of callbacks, not using `throw` in modern JavaScript makes code much more complex.
151151

152-
- **They don't pre-compile schemas.** Many validators define schemas as plain JavaScript objects, which means they delegate the parsing of the schema logic to validation time, making them much slower.
153-
154152
- **They're tightly coupled to other concerns.** Many validators are tightly coupled to Express or other frameworks, which results in one-off, confusing code that isn't reusable across your code base.
155153

156154
- **They use JSON Schema.** Don't get me wrong, JSON Schema _can_ be useful. But it's kind of like HATEOAS—it's usually way more complexity than you need and you aren't using any of its benefits. (Sorry, I said it.)

0 commit comments

Comments
 (0)