-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation for match() #63
Conversation
You should document what the pitfall of using |
Very good point and one that I did not properly consider before. Now I would actually prefer to change the default behaviour so that an exception is thrown by What do you think of this @Hilzu? In regards to this PR... I'll update the docs with current state. |
That might be one way of doing it. I'm also thinking about adding a |
Using app.get('/foo', validator.match(), (req, res, next) => ...); But I think you're not talking about middleware? Could you illustrate with an example what you mean exactly? |
No middleware is exactly what I'm talking about. Somehow I didn't realize that match could also be used like that. I think making |
Documentation proposal for feature from #37
Maintainers, feel free to edit any formatting or words as you wish.