Skip to content

Commit d2752d5

Browse files
committed
Check for typeof paths[path] to be object
1 parent 8d4d79d commit d2752d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/schemaUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ module.exports = {
634634
Object.assign(specComponentsAndUtils, concreteUtils.getRequiredData(spec));
635635

636636
for (path in paths) {
637-
if (paths.hasOwnProperty(path) && (paths[path] !== undefined || paths[path] !== null)) {
637+
if (paths.hasOwnProperty(path) && typeof paths[path] === 'object') {
638638
currentPathObject = paths[path];
639639

640640
// discard the leading slash, if it exists

0 commit comments

Comments
 (0)