arb / celebrate

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

Adds format function #129

Closed arb closed 4 years ago

arb commented 5 years ago

Closes #118

Adds a format function that can be used to format any Joi error to the same shape as errors coming from the celebrate middleware.

codecov-io commented 5 years ago

Codecov Report

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

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #129   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          62     73   +11     
  Branches       10     11    +1     
=====================================
+ Hits           62     73   +11
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 43f42b1...0923077. Read the comment docs.