Comments (3)
@sergio11 nice!
Relish (in it's current state) is tightly coupled to the Hapi framework and its route option's failAction
. This means that Relish is not compatible with Express at the moment.
I would recommend checking out Joi's any.error
option for setting custom errors on a Joi schema.
from relish.
@sergio11 are you currently using Joi for validation in your express application?
from relish.
yes, I am developing a proyect based on this boilerplate KunalKapadia/express-mongoose-es6-rest-api. In which it is used express-validation and JOI for API parameter validation.
how could employ relish here?
from relish.
Related Issues (15)
- Enhance README
- Add Tests
- Add support for Joi `.label(name)` HOT 1
- Add linter for code style
- Update packages
- In the post method when no data was passed means it doesn't show any field errors? HOT 1
- Update to support new paths in Joi 11 HOT 7
- Add i18n Support HOT 1
- Does relish support hapi v17? HOT 3
- Security Issue with hoek HOT 1
- Question message for an item in an array
- Use relish for response validation
- Update dependencies
- This project seems dead, is there a new maintainer?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from relish.