-
-
Notifications
You must be signed in to change notification settings - Fork 325
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
Fix: Eval as boolean #619
Fix: Eval as boolean #619
Conversation
Yeah, I think we could add a |
Tests added! If this is ready and could be releases, it'd be great 🙏 |
Codecov Report
@@ Coverage Diff @@
## master #619 +/- ##
=======================================
Coverage 55.35% 55.35%
=======================================
Files 27 27
Lines 775 775
=======================================
Hits 429 429
Misses 346 346 Continue to review full report at Codecov.
|
@pateketrueke Is this going to be merged/released automatically? What's the procedure? |
I was waiting for TravisCI to complete, thank you! |
Ay perfecto! |
The current code will fail and fallback to default options values in case the
minItems
ormaxItems
is 0, which is not what we want. (0 evaluates as false)I have tried to write a test for it but apparently the helpers I found are not good enough. I do not know how to assert that the length of a schema-generated array is not empty, nor a way to say "it has at least X elements"