-
-
Notifications
You must be signed in to change notification settings - Fork 40
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: rework format for maxLength, minLength #67
Conversation
Codecov Report
@@ Coverage Diff @@
## master #67 +/- ##
==========================================
+ Coverage 98.57% 98.58% +0.01%
==========================================
Files 5 5
Lines 561 567 +6
Branches 252 255 +3
==========================================
+ Hits 553 559 +6
Misses 8 8
Continue to review full report at Codecov.
|
@@ -1481,7 +1481,7 @@ exports[`Validation should fail validation for oneOf #1 1`] = ` | |||
exports[`Validation should fail validation for oneOf #2 1`] = ` | |||
"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema. | |||
- configuration.optimization.runtimeChunk should be one of these: | |||
boolean | \\"single\\" | \\"multiple\\" | object { name? } | |||
boolean | \\"single\\" | \\"multiple\\" | empty string | object { name? } |
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.
empty string
, regression?
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.
what do you mean? it is by design, when maxLength: 0
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.
Oh, I understood what you mean, I will check
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.
@evilebottnawi I have updated anyOf
in configuration.optimization.runtimeChunk
with
{
"type": "string",
"maxLength": 0
}
So all works as expected
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.
👍
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.
Good job
This PR contains a:
Motivation / Use-Case
#65
Breaking Changes
no
Additional Info
Add support for
maxLength === 0