File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ OptionsValidationError.formatValidationError = function formatValidationError(er
34
34
switch ( err . params . type ) {
35
35
case "object" :
36
36
return dataPath + " should be an object." ;
37
+ case "array" :
38
+ return dataPath + " should be an array." ;
37
39
case "string" :
38
40
return dataPath + " should be a string." ;
39
41
case "boolean" :
@@ -43,6 +45,8 @@ OptionsValidationError.formatValidationError = function formatValidationError(er
43
45
}
44
46
return dataPath + " should be " + err . params . type + ":\n" +
45
47
getSchemaPartText ( err . parentSchema ) ;
48
+ case "instanceof" :
49
+ return dataPath + " should be an instance of " + getSchemaPartText ( err . parentSchema ) + "." ;
46
50
case "required" :
47
51
var missingProperty = err . params . missingProperty . replace ( / ^ \. / , "" ) ;
48
52
return dataPath + " misses the property '" + missingProperty + "'.\n" +
Original file line number Diff line number Diff line change 127
127
"description" : " A directory to serve files non-webpack files from." ,
128
128
"anyOf" : [
129
129
{
130
+ "items" : {
131
+ "type" : " string"
132
+ },
133
+ "minItems" : 1 ,
130
134
"type" : " array"
131
135
},
136
+ {
137
+ "type" : " boolean"
138
+ },
132
139
{
133
140
"type" : " number"
134
141
},
147
154
},
148
155
"features" : {
149
156
"description" : " The order of which the features will be triggered." ,
157
+ "items" : {
158
+ "type" : " string"
159
+ },
150
160
"type" : " array"
151
161
},
152
162
"compress" : {
You can’t perform that action at this time.
0 commit comments