arb / celebrate

A joi validation middleware for Express.
MIT License
1.33k stars 66 forks source link

Use CelebrateError object instead of POJO #144

Closed arb closed 4 years ago

arb commented 4 years ago

Closes #138

We now use error objects that extend the base Error object. Removed format in favor of calling CelebrateError() directly. This way we are always using "real" Error objects. This can be handy for things outside of this library that want all Error objects to extend the built in one.

codecov-io commented 4 years ago

Codecov Report

Merging #144 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #144   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          64     68    +4     
  Branches       11     11           
=====================================
+ Hits           64     68    +4
Impacted Files Coverage Δ
lib/index.js 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update eaecbf4...94ac810. Read the comment docs.