arb / celebrate

A joi validation middleware for Express.
MIT License
1.34k stars 65 forks source link

Expose isCelebrate #51

Closed arb closed 7 years ago

arb commented 7 years ago

We should probably export the isCelebrate Symbol so that users could use it if they didn't want to use our error handler function but wanted to know if the passed in err was from celebrate or not.

cjihrig commented 7 years ago

That's a good idea. Although I'd say export an isCelebrate() function so that people can't muck around and attach the symbol to random objects.