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

Schemas with .unknown(true) turn up empty #47

Open
leobudima opened this issue Aug 11, 2020 · 0 comments
Open

Schemas with .unknown(true) turn up empty #47

leobudima opened this issue Aug 11, 2020 · 0 comments

Comments

@leobudima
Copy link

I don't think the changes in 4eba3f9 have the intended result, as any Joi schema with .unknown will end up as a single Mongoose property with type mixed, and children will not be processed due to early return on line #82.

leobudima added a commit to leobudima/joigoose that referenced this issue Aug 11, 2020
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

No branches or pull requests

1 participant