-
-
Notifications
You must be signed in to change notification settings - Fork 544
Supports minItems / maxItems #872
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
Conversation
|
a4b87a4
to
b7a41fb
Compare
@@ -150,6 +151,34 @@ describe("SchemaObject", () => { | |||
); | |||
}); | |||
|
|||
it("array (supportArrayLength)", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome tests!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thank you!
Codecov Report
@@ Coverage Diff @@
## main #872 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 1 1
=========================================
Hits 1 1 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m in favor of merging this, but on second thought, I’d like to see the following added:
- There’s no documentation in the README, nor the
--help
flag on how to use this new feature. How would a user use this? When would they want to use this? - There are no tests in the CLI to test if this flag is working (there are good TypeScript tests, but we’re not checking the
--support-array-length
flag is passed correctly)
Could you address both of the following?
b7a41fb
to
80a7dcd
Compare
80a7dcd
to
71c3af6
Compare
Thanks. I added a test. |
@all-contributors please add @kgtkr for code, docs |
I've put up a pull request to add @kgtkr! 🎉 |
fix #871