We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae427e5 commit 476e065Copy full SHA for 476e065
lib/util.js
@@ -154,15 +154,16 @@ api.validateTypeValue = (v, isFrame) => {
154
155
if(types.isArray(v) && v.every(vv => types.isString(vv))) {
156
return;
157
- } else if(isFrame && types.isObject(v)) {
+ }
158
+ if(isFrame && types.isObject(v)) {
159
switch(Object.keys(v).length) {
160
case 0:
161
// empty object is wildcard
162
163
case 1:
164
// default entry is all strings
165
if('@default' in v &&
- api.asArray(v['@default']).every(vv => types.isString(vv))) {
166
+ api.asArray(v['@default']).every(vv => types.isString(vv))) {
167
168
}
169
0 commit comments