We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a problem with Joi When usage.
the when must be use with 2 cases :
The problem with the second type. For example I have this schema :
Joi.when(Joi.object({ type : 'model' }).unknown(), { then : Joi.object().keys(modelObject), otherwise : Joi.object().keys(mathObject), })
This schema switch full result schema when one specific field has specific value.
In my case, I can't use the is option but your library force this option and ignore the second when use case.
If I comment this part it works fine :
joi-to-json-schema/src/index.js
Lines 17 to 19 in 4de6452
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a problem with Joi When usage.
the when must be use with 2 cases :
The problem with the second type. For example I have this schema :
This schema switch full result schema when one specific field has specific value.
In my case, I can't use the is option but your library force this option and ignore the second when use case.
If I comment this part it works fine :
joi-to-json-schema/src/index.js
Lines 17 to 19 in 4de6452
The text was updated successfully, but these errors were encountered: