You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know how deep joigoose works for converting schemas to the ones compatible with mongoose but I am having this problem where my joi schema is kinda valid (cause it did not throw me any error) but when I try to use the joigoose convert method he does not work at all. For my other schemas, it works fine but in this specific case doesn't.
TypeError: Invalid schema configuration: undefined is not a valid type within the array restrictions.content.See http://bit.ly/mongoose-schematypes for a list of valid schema types.
For those who also had this problem I managed to solve using just normal Joi.array().allow(null) without any inner validation, of course it is temporary, I will be digging in the next few days trying to solve this problem too. Have a nice day :D
I don't know how deep joigoose works for converting schemas to the ones compatible with mongoose but I am having this problem where my joi schema is kinda valid (cause it did not throw me any error) but when I try to use the joigoose convert method he does not work at all. For my other schemas, it works fine but in this specific case doesn't.
TypeError: Invalid schema configuration: undefined is not a valid type within the array restrictions.content.See http://bit.ly/mongoose-schematypes for a list of valid schema types.
This is a sample of valid data:
The text was updated successfully, but these errors were encountered: