-
Notifications
You must be signed in to change notification settings - Fork 89
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
Validate hook too limited #50
Labels
Comments
Suggestion, I guess, is to pass |
Noted.
We've discussed doing a rethink of validation once the redesigned populate and serialize hooks are completed.
|
eddyystop
added a commit
that referenced
this issue
Jan 18, 2017
- #50 - validation fcn provided to validate hook now also gets the hook as a param
Merged
This will be available in feathers-hooks-common v3. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to do some async validation and use
app
and someservices
to do so, but the defaultvalidation
hook is only useful for very basic stuff that can be done locally with the data provided.I started wrapping my validation in a higher order function to pass the
app
, but hooks/index.js that feathers generates are straight up functions.The text was updated successfully, but these errors were encountered: