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
Context
To Reproduce Attempt to create an example of:
Joi.object({ foo: Joi.array() .items( Joi.object().length(1) ).has( { bar: Joi.string() } ), });
Expected behavior I would expect an example object to look something like:
{ foo: [{ bar: "dshkf" }] }
since Joi should require at least one object in my array matching the validation in .has()
.has()
Observed behavior
{ foo: [{ hsdkj: "hfkdsj" }] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Context
To Reproduce
Attempt to create an example of:
Expected behavior
I would expect an example object to look something like:
since Joi should require at least one object in my array matching the validation in
.has()
Observed behavior
The text was updated successfully, but these errors were encountered: