Skip to content
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

Fix TypeError when no joiOptions is provided, which will apply the joi defaults as well. #9

Merged
merged 6 commits into from Feb 11, 2020

Conversation

schettino
Copy link
Contributor

As currently there is no way to use this lib passing an undefined joiOptions, applying joi defaults when it is undefined won't affect who is using this hook (backward compatible).

I have made the tests showing that convert will be true when using the joi defaults.

@schettino
Copy link
Contributor Author

resolves #8
resolves #6

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 60e8e76 on schettino:master into 0648903 on eddyystop:master.

nuc added a commit to verkstedt/feathers-hooks-validate-joi that referenced this pull request Sep 17, 2019
Fix TypeError when no joiOptions is provided, which will apply the joi defaults as well. feathersjs-ecosystem#9
@marshallswain marshallswain merged commit 1638dd5 into feathersjs-ecosystem:master Feb 11, 2020
@marshallswain
Copy link
Member

Surprise, @schettino! Thanks for the PR. Once the other one is merged, I'll release a new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants