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
Joi validation should be the same regardless of how a type is defined.
Desktop (please complete the following information):
OS: macOS
Browser cURL
Additional context
I tested this with an altString: { type: Types.String } property and didn't have any issues. I also used the mixed/altMixed schema in the REPL to create a document and didn't have any issues.
The text was updated successfully, but these errors were encountered:
Describe the bug
Setting a schema field to Mixed type using a SchemaType object creates invalid Joi configuration
To Reproduce
Example schema:
Creating a document fails unless
altMixed
is an objectDocument with
altMixed
set to a stringDocument with
altMixed
set to an empty objectExpected behavior
Joi validation should be the same regardless of how a type is defined.
Desktop (please complete the following information):
Additional context
I tested this with an
altString: { type: Types.String }
property and didn't have any issues. I also used themixed
/altMixed
schema in the REPL to create a document and didn't have any issues.The text was updated successfully, but these errors were encountered: